Aza Posted July 13, 2006 Report Share Posted July 13, 2006 I am currently building a site for my dad, but am having extreme frustration on validating a form. I have it all set out and the form emails the results to you via php. However, I need to validate the form so that a blank submission and credentials are checked... Can anyone help please?? Link to comment Share on other sites More sharing options...
Bjorn Posted July 13, 2006 Report Share Posted July 13, 2006 :shock: :? Link to comment Share on other sites More sharing options...
Dewi Posted July 13, 2006 Report Share Posted July 13, 2006 :shock: :? +1 Link to comment Share on other sites More sharing options...
Briggsy Posted July 13, 2006 Report Share Posted July 13, 2006 Do you mean you need to add something to the script so that it checks that all the information is filled in completely before the form can be submitted? Link to comment Share on other sites More sharing options...
Aza Posted July 14, 2006 Author Report Share Posted July 14, 2006 Yeh mate - cheers for your reply I think I have actually figured something after literally 4.5hours straight :S I have had a series of JScript validation techniques in the <head> section of my page, for some reason the form would check the validation, but even after saying "Error" it would still proceed to submission. You only realise how delicate code is afterwards and how such a minor change is the difference between succss & failure. I figured that I was missing something.. return false ; } return true ; I missed out the "return false" bits which essentially exit the validation and prevents the form submitting. Also I needed "onsubmit="return title of your javascript(form)". Think I have enough to carry on now - unless you know any shizzle scripts for validating typical fields in a contact form ; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.