Reaper0167 Posted December 27, 2008 Share Posted December 27, 2008 lets say you have 5 fields on a form. if a field is left empty and the user clicks the submit button, could some text appear to the right of the field letting the user know that it must be filled in. couldn't you hide the error text and when the submit button is clicked you could do something like if empty then show text if anyone has any input,, please share,, thanks Quote Link to comment Share on other sites More sharing options...
corbin Posted December 27, 2008 Share Posted December 27, 2008 That's JavaScript, not PHP. And yes, you could do that. You could simply make them hidden divs or something and then unhide them. Quote Link to comment Share on other sites More sharing options...
Reaper0167 Posted December 27, 2008 Author Share Posted December 27, 2008 i know i keep posting new threads on this subject but i can't find a good tutorial on using javascript to dispaly a message next to a field if it is empty when the submit button is clicked. sorry guys/girls 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.