italianrock72 Posted June 22, 2009 Share Posted June 22, 2009 Alright, I have Required Fields in my PHP form. If people don't fill them out, and then hit submit, how do I get a thing to come up saying, you must fill out "So and So" to make the form complete... Right now, when they fill it out, it sends them right to my index.html page. Because when they successfully fill something out it sends them to a Thank You Page. Anyone understand or can help out there? Link to comment https://forums.phpfreaks.com/topic/163284-required-field-when-submit-how-to-get/ Share on other sites More sharing options...
ldougherty Posted June 22, 2009 Share Posted June 22, 2009 This is very easy to do with Javascript.. http://www.willmaster.com/library/javascript/making-form-fields-required.php With PHP you could only check that the contains data after being submitted and if it doesn't redirect back to the script. Link to comment https://forums.phpfreaks.com/topic/163284-required-field-when-submit-how-to-get/#findComment-861486 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.