dragunu Posted January 7, 2007 Share Posted January 7, 2007 Hello dear php community, is it possible to restrict input to a text box,say, i only want integers in the text box and if any other character is entered, an error msg props up.thanks dragunu Link to comment https://forums.phpfreaks.com/topic/33257-solved-integers-only-in-text-box/ Share on other sites More sharing options...
trq Posted January 7, 2007 Share Posted January 7, 2007 Take a look at [url=http://php.net/is_numeric]is_numeric[/url](). Link to comment https://forums.phpfreaks.com/topic/33257-solved-integers-only-in-text-box/#findComment-155296 Share on other sites More sharing options...
dragunu Posted January 7, 2007 Author Share Posted January 7, 2007 thanks for the swift reply :) Link to comment https://forums.phpfreaks.com/topic/33257-solved-integers-only-in-text-box/#findComment-155298 Share on other sites More sharing options...
papaface Posted January 7, 2007 Share Posted January 7, 2007 If you want it done in realtime you will need javascript:see: http://www.go4expert.com/forums/showthread.php?t=2359 Link to comment https://forums.phpfreaks.com/topic/33257-solved-integers-only-in-text-box/#findComment-155299 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.