Hi, I have been having a number of issues when trying to create a mail form. Basically i have created a rather simple html sheet ... it is a quiz in fact. The point is i want people to fill it in and submit the form to a designated mail address. But how? I just have no idea how to have the sheet submitted to the e-mail addy.... any help? Regards. Lee
you can have the form programmed server side in PHP or ASP depending on what type of server you are hosting your site on.. I believe there is javascript based form submission as well if you go that route.. but there are disadvantages to that http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml here is a quick page I searched that show you how to do it in Perl or PHP http://www.javascript-coder.com/html-form/html-form-email.phtml
Hello, Invertabid. You have to use a form-to-email script if your page is coded in HTML. This is a script in Perl or other scripting language that is loaded in the cgi-bin of your site. The form's action parameter is set to point to that script. There are many of these scripts in the net. Alternatively, you can learn to code in PHP and do everything in the page. Cheers.
I tried using a form mailer which i loaded into the cgi-bin but it reluctantly would not work.... I am not overly useful with php but i will give it ago. Cheers for the help. Lee
You don't need a cgi script in case of html forms... You can just point the script to any php, asp etc script as well... <form action="scriptname.php" method="post"> Use $_POST to get values of submission. $tvariable_one = $_POST['textfield1']; $tvariable_two = $_POST['textfield2']; similar for others... Check it for validity. if(condition) { //error or OK } Check each variable with good care... Then build your message using a (.) sign $message= "Text1= " . $tvariable_one . "\n Text2= " . $tvariable_two . "\n"; $subject= "quiz submission"; $to = "someone@domain.com"; mail($to,$subject,$message); Checking for validity is an important part, specially when using mail function. Bye