bLazExD Posted May 9, 2008 Share Posted May 9, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/ Share on other sites More sharing options...
Xurion Posted May 10, 2008 Share Posted May 10, 2008 You'll need PHP knowledge. Use $_POST['field_name'] in the action script to get the information entered into the fields. Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-537438 Share on other sites More sharing options...
gazfocus Posted May 10, 2008 Share Posted May 10, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-537606 Share on other sites More sharing options...
bLazExD Posted May 10, 2008 Author Share Posted May 10, 2008 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! Thanks alot guys >.< Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-537830 Share on other sites More sharing options...
gazfocus Posted May 10, 2008 Share Posted May 10, 2008 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! Thanks alot guys >.< What browser are you using? Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-537841 Share on other sites More sharing options...
TheFilmGod Posted May 10, 2008 Share Posted May 10, 2008 <?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. Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-537850 Share on other sites More sharing options...
bLazExD Posted May 10, 2008 Author Share Posted May 10, 2008 Browser? You mean the place i created the web? Its www.freewebs.com Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-537904 Share on other sites More sharing options...
bLazExD Posted May 13, 2008 Author Share Posted May 13, 2008 Please help me!! i really need the code to make the submit button that can sends information to my email ! Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-539693 Share on other sites More sharing options...
haku Posted May 13, 2008 Share Posted May 13, 2008 http://www.google.com/search?hl=en&q=php+contact+form&btnG=Google+Search Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-539698 Share on other sites More sharing options...
Xurion Posted May 14, 2008 Share Posted May 14, 2008 I was in error above as I assumed you needed PHP to send the mail. I think you need to go away and learn more basics. Quote Link to comment https://forums.phpfreaks.com/topic/104866-how-to-make-submit-button-saves-page-info-and-sends-to-my-email/#findComment-540857 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.