The only information i could find in the book is how to create a webmail client using PHP, nothing on using order forms, survey forms, etc in the book at all. I guess the only way to explain exactly what i'm trying to do would be to go into detail in the code. I'm creating an html form that will point to a PHP email handler script like below:
<head>
<title>Please describe your question</title>
</head>
<body bgcolor="white" text="black">
For prompt and accurate service, we ask that you enter some simple information below. Thanks.<br><br>
<form action="emailform.php" Method=POST>
Please enter your first name below:<br>
<INPUT TYPE=TEXT NAME="firstname" size=20><br>
Email address:<br>
<INPUT TYPE=TEXT NAME="email" SIZE=60><BR>
Now please enter the question you would like to ask:<br>
<TEXTAREA NAME="question" ROWS=5 COLS=40></textarea><br><br>
<INPUT TYPE=SUBMIT NAME="submit" Value="Submit!"></form></body>
Now what i'm having problems with is finding suitable PHP code that would take the information entered in the form as described above and send it to an email address which i specify when the submit button is pressed. I was thinking of using a separate PHP file to handle the html form much like cgi does, however if there's a way to make it inclusive in one page that would work too. any suggestions or ideas would be very helpful, thanks.