Here is the code the backlinkretailers.co.cc site uses:
Code:
<FORM action="mailto:mlb4168@gmail.com" method="POST">Name:
<INPUT type="text" name="Name" size="30">Email:
<INPUT type="text" name="Email" size="30">Client:
<INPUT type="checkbox" name="checkbox" value="Client">Handler:
<INPUT type="checkbox" name="checkbox" value="Handler">
<INPUT type="submit" name="Submit" value="Send"></FORM>
They are just using "mailto" which is not the most ideal thing to use. If a user tries to submit the form, it will open their email client and prompt them to send a pre-filled email. You will probably lose a lot of emails that way.
I would use a php page to process the form and send out an email. BUT, if you are going to use the "mailto" and need to send it to two people, it would look something like this:
"mailto:firstaddress@gmail.com, secondaddress@gmail.com"
You would just separate the email addresses with a comma.
Now, if you want to automatically pass the type of person filling out the form, you could use a hidden field that would look something like this:
Code:
<form action="mailto:email@email.com" method="post">
<label for="clientName">Name:</label><input type="text" name="clientName" />
<label for="clientEmail">Email:</label><input type="text" name="clientEmail" />
<input type="hidden" name="userType" value="client" />
<input type="submit" value="submit" />
</form>
The hidden form field will go through and you can see that, in this case, it came from the client page. On the "handler" page, you would just change the value of the hidden form field to "handler".
If you need help creating a processing page for this rather than using the "mailto", there are some great people in the PHP forum that could probably help.
Last edited by angele803; 05-01-2009 at 03:38 PM..
|