ilikephp Posted April 15, 2009 Share Posted April 15, 2009 HI, I have created a form using php, and in the form I need to validate that the age is not more than 25, else the code should display error message. How can I do it plzz?? it is a test!!! Thanks in advance... Link to comment https://forums.phpfreaks.com/topic/154188-urgent-plz-it-is-a-test/ Share on other sites More sharing options...
jackpf Posted April 15, 2009 Share Posted April 15, 2009 if($age > 25) { die(); } Link to comment https://forums.phpfreaks.com/topic/154188-urgent-plz-it-is-a-test/#findComment-810537 Share on other sites More sharing options...
ilikephp Posted April 15, 2009 Author Share Posted April 15, 2009 where should I put it plz? Link to comment https://forums.phpfreaks.com/topic/154188-urgent-plz-it-is-a-test/#findComment-810539 Share on other sites More sharing options...
Mchl Posted April 15, 2009 Share Posted April 15, 2009 So you're actually solving a test right now? Link to comment https://forums.phpfreaks.com/topic/154188-urgent-plz-it-is-a-test/#findComment-810542 Share on other sites More sharing options...
ilikephp Posted April 15, 2009 Author Share Posted April 15, 2009 yeah Link to comment https://forums.phpfreaks.com/topic/154188-urgent-plz-it-is-a-test/#findComment-810544 Share on other sites More sharing options...
Mchl Posted April 15, 2009 Share Posted April 15, 2009 And are you supposed to use help from outside to solve it? Link to comment https://forums.phpfreaks.com/topic/154188-urgent-plz-it-is-a-test/#findComment-810545 Share on other sites More sharing options...
jackpf Posted April 15, 2009 Share Posted April 15, 2009 If you actually don't know where to put that then I think you need to look up a PHP tutorial. No offense. And yeah lol, isn't this cheating a tad? Link to comment https://forums.phpfreaks.com/topic/154188-urgent-plz-it-is-a-test/#findComment-810546 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.