I have a line of code in my form that I am trying to get to work.  

$action = ($HTTP_POST_VARS['action'] == "data_input") ? "check" : "display";

I recieved undefined action when running.  So I did this.

$command = isset($HTTP_VARS['action'] == "data_input") ? "check" : "display";

I recieve unexpected T_IS_EQUAL, expecting ',' or ')'

Ive tried a couple different ways to isolate my syntax.  I am using the example from
 http://www.zend.com/zend/spotlight/form-pro-php4.php

Ive also read this document and I understand it.  
http://ca2.php.net/manual/en/language.expressions.php

I know that is my syntax,  I followed the example that Lars Torben Wilson <[EMAIL 
PROTECTED]> gave me, and it worked great checking the isset before declaring in my 
form.  Im hoping that this is just as simple.  

-Dan

Reply via email to