thx for ur reply man, but that continues, not working at all...
I have tried (as u suggested):
Code: Select all
<?php
if( !is_int( $_POSTї"processors_cant"] )
{
echo "has not been set";
}
?>
also:
Code: Select all
<?php
if( !is_int( $_POSTї'processors_cant'] )
{
echo "has not been set";
}
?>
and finally:
Code: Select all
<?php
if( !is_int( $_POSTїprocessors_cant] )
{
echo "has not been set";
}
?>
but none works

( the same happend with empty() )
my understanding is that the "if" conditions is TRUE, it should allow execute the code between "{ }" right... if the variable "processors_cant" has not been set is because the variable is empty (or am I wrong ?)
What I need to do is very simple, but none of the functions I have tried has worked the way it should works. I need to validate if the variable "processors_cant" which is coming from a form, has a value, I mean if the user in the form introduced some value, and if has not been introduced nothing inside it (using a text field in a form) then that should be empty or not set right ?
I have tried using the functions empty() and isset(), but nothing worked, and I have leaved the text field empy to test if the validation is taken effect but the message "has not been set" never shows up on the screen