|
Answer» Hello,
I downloaded a free template for a website but when I came along the contactform I found an missing file. The form has no action and I do not know how to make a SCRIPT that sends the form to me.
Maybe someone can help me out?
This is the form:
Code: [Select]<form ID="ContactForm" action="" method="post"> <div> <div class="wrapper"><span>Name:</span><input type="text" name="naam" class="input"></div> <div class="wrapper"><span>Email:</span><input type="text" name="email" class="input"></div> <div class="wrapper"><span>Company:</span><input type="text" name="bedrijf" class="input"></div> <div class="textarea_box"><span>Message:</span><textarea name="textarea" cols="1" rows="1"></textarea></div> <a href="#" id="submit" class="button2 COLOR3">Send</a> <a href="#" id="RESET" class="button2 color3">Clear</a> </div> </form>If the form is intended to send email, you need a server-side script to validate the input and then send the email. I'd also recommend using a CAPTCHA at the very least to ensure that the contact form doesn't get spammed continually (it will). If PHP is available to you, I'd use that. Googling "PHP email form" provides lots of results. Here are some - I make no comment on the quality of coding, but they're a start:
http://www.kirupa.com/web/php_contact_form2.htm http://www.php-scripts.com/php_diary/122899.php3 http://www.daniweb.com/web-development/php/threads/99701
|