ok like i made a form in html all of it in html like when someone clicks submit how would i get the persons info and make it send to my email?
email you who just signed up and the details if you want
i would want to do that
use mail()
like give me the full script of how i would type it out
first make a form, give the name for each field the action pointed to the same file using $php_self, or other script then use mail() in the script
you can search the script here in the forum, maybe you find some
can i do it like this
<FORM METHOD="POST" ACTION="proces.php">
<? $Performer = $HTTP_POST_VARS['Performer'];
print "The Performer is: " . $Performer; ?>
mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3");
or how?
yes, you can you can even
$Performer .= "Line 1\nLine 2\nLine 3 and any text to be sent to joecool";
mail("joecool@example.com", "My Subject", $Performer);
i see man thanks
its not working try it at www.babesoncams.com/registration.html
tell me how to do it this what i put
<FORM METHOD="POST" ACTION="registration.php">
print "The Performer is: " . $Performer; mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3"); ?>
page not found
www.babesoncams.com/registration.PHP
you must use an if clause, so that you wont always get the form i.e
if ($HTTP_POST_VARS['Value']=='Sign Me Up!') { mail(); header("thanx.php"); }
how would i do it if someone didnt put all the info and they clciked sumit it would say error u didnt put your sn etc and when someone process the form how would it go into my database? do u have aim or aol i can talk to u on?
how would i do it if someone didnt put all the info and they clciked sumit it would say error u didnt put your sn etc
you would have to use more if clause let the isset() function help you
and when someone process the form how would it go into my database?
there are myal function to use maybe there are many tutorial about that, search for it with google or so, keyword: mysql tutorial 🙂