iconicCreator Posted February 17, 2009 Share Posted February 17, 2009 I have a form and the script on a separate page, however I am trying to put the validation code on the same page as the form script but it does not work. Being new to PHP I'm wondering if this is even possible? IC Quote Link to comment Share on other sites More sharing options...
Lodius2000 Posted February 17, 2009 Share Posted February 17, 2009 yes... read my articles http://scriptingsource.com/2009/01/form-processing-made-easy-part-one/ http://scriptingsource.com/2009/02/form-processing-made-easy-part-two/ change validate_form() to read validate_form(){ require('path/to/validation.php'); } there you have it Quote Link to comment Share on other sites More sharing options...
iconicCreator Posted February 17, 2009 Author Share Posted February 17, 2009 yes... read my articles http://scriptingsource.com/2009/01/form-processing-made-easy-part-one/ http://scriptingsource.com/2009/02/form-processing-made-easy-part-two/ change validate_form() to read validate_form(){ require('path/to/validation.php'); } Thanks but these links are not working - DATA BASE ERROR. IC there you have it Quote Link to comment Share on other sites More sharing options...
Lodius2000 Posted February 17, 2009 Share Posted February 17, 2009 they work fine for me... anyone else no seeing them Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.