Jump to content

How To Make Submit Button Saves Page Info and Sends To My Email?


Recommended Posts

Please help me! I have recently created a free website than enable viewers to enter their informations and then click the submit button, how to make the submit button saves up the page information and sends it to my email address so that i am able to view their information?

Xurion is incorrect.

 

All you need to do, is in the form tag, you should already have the following (or something similar)

<form id="form1" name="form1" method="" action"">

 

In method, put "post" and in action put "mailto:" followed by your email address, so it should read something like

 

<form id="form1" name="form1" method="post" action="mailto:joe@bloggs.co.uk">

 

Hope this helps.

Omg i dun understand >.<!!

This is the code for the submit button right?

<input type="submit" value="Submit">

So how do i make it so that when people clicks on the this button, it will sends a email to my email address so that i know the information?

Sorry i'm new to this >.<"

Hope i can learn more from Professional out there! :D

Thanks alot guys >.<

Omg i dun understand >.<!!

This is the code for the submit button right?

<input type="submit" value="Submit">

So how do i make it so that when people clicks on the this button, it will sends a email to my email address so that i know the information?

Sorry i'm new to this >.<"

Hope i can learn more from Professional out there! :D

Thanks alot guys >.<

 

What browser are you using?

<?php 

// If form was submitted
if ( isset($_POST['submit'])) {

   ... validate form and send email to you.



}
// Form not submited
else {
?>
<form action="<?php echo"$_SERVER['PHP_SELF']"; ?>"  method="post">

... form crap
<input type="submit" name="submit" value="Submit" />

</form> 
<?php
}
?>

 

That's a good place to start off.

 

Hope others can add on to this. Sorry, I don't have time to finish this for you.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.