data formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm submitting form data which is a mixture of checkboxes and text inputs, some of which are integers and a couple text based.  I am retrieving the data as follows:
$var = (int)!empty($_POST['var']);  for checkboxes,
$var = (int)$_POST['var']; for integers and 
$var = mysql_real_escape_string($_POST['var']);
Is this correct?


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux