More questions about PHP
Posted: Sun Oct 27, 2002 7:15 pm
1) I tried to use the function is_int() which u guys, suggested me to use, in order to validate the info coming from my form and use it later to make some calculations. But I dont know what I'm doing bad 'coz I dont get the wished result. All what I need is that the validation, test if the variable $_POST[processors_cant] is an integer or not. (or preferred if is >0 (only natural numbers... thx hob_goblin to remember me the math classes... jejeje
)
Look at how I tried to use the function:
1st. one:
2nd. one:
2) Is there some function in PHP to show some message for x seconds on the screen and after that do another process ?
3) I would like to know what's the function in PHP to finish or exit the process or validation doing at that moment.
i.e
I'm looking for the kind of function that leave or go out the loop or condition which is been performed at that moment, u understand me right ? 
Look at how I tried to use the function:
1st. one:
Code: Select all
if ( is_int( $_POSTїprocessors_cant] == "TRUE" )
{
do something;
}Code: Select all
if( is_int( $_POSTїprocessors_cant] )
{
do something;
}3) I would like to know what's the function in PHP to finish or exit the process or validation doing at that moment.
i.e
Code: Select all
if ($a == 1)
{
do something;
}
else
{
$a=2;
exit( ); <-- abort or leave... I dont how is named this kind of functions
}