I want to add a script on to my website that enables new enquires to submit an enquiry.
i'v set up the forms but need to some help in implementing.
this is the page i have set up http://www.bioenergyhealing.org.uk/ask_a_question
thanks
michael
I want to add a script on to my website that enables new enquires to submit an enquiry.
i'v set up the forms but need to some help in implementing.
this is the page i have set up http://www.bioenergyhealing.org.uk/ask_a_question
thanks
michael
This isn't something you can do with JavaScript, you need a server side language such as PHP to process the form.
You can however do validation with JavaScript which is always useful.
thanks, i v just listed my thread in php
If you do want some validation methods anyway you could do something like this to the onclick event:
Something like that to save some time for PHP by not sending a form with nothing on it.Code:<head> <script type="text/javascript"> <!-- function checkForm() { if (getElementById('T1').value == "") { alert("Please input your name"); return false; } } --> </script> </head> <body> First Name: <input type="text" name="T1" id="T1" size="29"> <input type"button" name="Submit" id="Submit" onclick="checkForm();" value="Send Email"> </body>
Bookmarks