Woo first post!
Here is how I would do it:
First you need to make a form template in HTML that you want mailed to you. Then, if you want to use just one script to generate the form that you have there as the one sending the mail, you need to make it check whether the form has been mailed. You can do this by doing something like:
PHP Code:
<?php
if (isset($_POST['submit'])) {
// check variables, send the mail and give confirmation to user
}
else {
// display default form to the user
}
You need to put all of the variables they submitted into the template, which will be emailed to you. You send the form using the mail() function.
Last edited by mikerobinson; 09-29-2007 at 03:23 PM..
|