seventheyejosh Posted February 18, 2009 Share Posted February 18, 2009 Hello all. I'm not too terrible well versed in javascript, although i am learning more everyday. I've poked around a bit online and havent been able to really find what im looking for. Basically I have the following problem. I have an <input type=text name=games> and basically if someone submits the form with a "0" or "" in the games field, I need a confirm box to pop up asking them if they are sure they want to continue. If they say yes, it will submit the form with no furthor prompting. If they say cancel however, i need it to jump back to the form and allow them to continue. I can sort of manage this. However, i also have an <input type=checkbox name=skip value=1> and if this is checked and then the form is submitted, I need it to completely bypass the fact that 'games' may be "0" or "". also, im not sure if it matters but my form's name is referee_schedule , my method is post , and my action is /index.php Thanks very much in advance, im primarily a pHp programmer, but i'm trying to spice up my code. Thanks! Link to comment https://forums.phpfreaks.com/topic/145791-very-basic-form-validation/ Share on other sites More sharing options...
seventheyejosh Posted February 19, 2009 Author Share Posted February 19, 2009 *bump* Link to comment https://forums.phpfreaks.com/topic/145791-very-basic-form-validation/#findComment-766512 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.