Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8186739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:19:27+00:00 2026-06-07T02:19:27+00:00

I currently have a form that on a coming soon page on my web

  • 0

I currently have a form that on a coming soon page on my web server that I need to capture entered email addresses and send it to my email address e.g. example@hotmail.com.

What would be the best way of accomplishing this using PHP?

<form method="post">

<input class="emailsubscribe mobile clearfix" type="text" name="mail" 
placeholder="Enter your email" onFocus="if(!this._haschanged)
{this.value=''};this._haschanged=true;"/>

<input class="emailsubscribe desktop clearfix" type="text" name="mail" 
placeholder="Enter your email to stay up to date" onFocus="if(!this._haschanged)
{this.value=''};this._haschanged=true;"/>

<input class="emailsubmit clearfix" type="submit" name="submit"/>

</form>

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:19:31+00:00Added an answer on June 7, 2026 at 2:19 am

    HTML:

    <form method="post" action="send.php">
        Enter your e-mail: <input type="text" name="email" />
        <input type="submit" name="submit" value="Submit" />
    </form>
    

    PHP (send.php):

    if(!isset($_POST['submit']) || !isset($_POST['email'])) die();
    $email = $_POST['email'];
    mail('youremail@gmail.com', 'Subject', 'Entered e-mail: '.$email);
    

    You should add some kind of protection like captcha to prevent spamming.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a web form aspx page that calls RegisterClientScriptBlock. This sends down
I currently have form that checks if a user has unsubmitted changes when they
I currently have a simple form that when you click the save button will
I currently have a PHP form that uses AJAX to connect to MySQL and
I currently have this useful code that I found elsewhere on StackOverflow: form.DrawToBitmap(bmp, new
I have a form that searches a MySQL database using PHP. Currently, when a
I am currently coding a web page that allows users to change local settings
I currently have a couple tables that I'm joining together so I can form
I have a form that functions as a settings page. When form elements are
I have a form that calls on two separate models. My validation works correctly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.