Re: How to check if vaiable is defined or not?
| From: | Reuben D Budiardja | Date: | Mon, 12 Feb 2001 23:29:12 +0000 |
| Subject: | Re: How to check if vaiable is defined or not? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39287@lists.php.net to get a copy of this message | ||
try:
isset($var);
return true is variable is set, false otherwise. Check www.php.net for more info.
Reuben D. B
At 11:21 PM 2/12/01 +0000, SED wrote:
Hi, I'm sending a form, with check-boxes, via post to PHP-script and if the boxes are not checked they don't post value for its variable - Can I check with a function if the variable is defined? (or should I focus on another solution?) Regards, Sumarlidi Einar Dadason SED - Graphic Design ------------------------------------------Phone: (+354) 4615501 Mobile: (+354) 8960376 Fax: (+354) 4615503 E-mail: sed@sed.is Homepage: www.sed.is <- New Homepage!------------------------------------------ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net