Perry Mason Posted March 18, 2010 Share Posted March 18, 2010 I don't know much about javascript. I've used three free source scripts for Field Required alert that I found on the web and neither of them works. I have other javascript on my pages (for submitting the url to digg/stumbleupon etc) and it works fine. I figure the chance of all three scripts (obtained from different sources) being broken is slim, so I guess the problem lies somewhere else. Are there any settings that I have to change server-side? Just need a push in the right direction, the rest I'll figure out myself. Thanks in advance Quote Link to comment Share on other sites More sharing options...
nafetski Posted March 18, 2010 Share Posted March 18, 2010 Well, always do server side validation. Always. If your javascript validation isn't working (ie, it lets you submit with a blank field) then it's not php related. It's javascript related. Check what conventions you need to have in place to use the script (IE, does it need ID tags in your input elements?) Best idea is just learn jQuery, and use the validation plugin. It rocks. Quote Link to comment Share on other sites More sharing options...
Perry Mason Posted March 18, 2010 Author Share Posted March 18, 2010 Yep, that's what happens - it allows me to submit the form with blank fields. This happens both locally and on the host server. Thanks for the advice, I'll keep digging into it. 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.