BirdOPrey5
06-28-2010, 07:09 PM
Is this even possible? Basically I made an IF statement saying
if ($post[field5] == "Yes")
Do Something...
also tried it with single quotes around 'field5' but in neither case does the if statement ever become true even when I know Field5 is a Yes/No option box and set to "Yes" exactly.
Is there someway of accessing the custom field from the php file?:confused:
Any help is much appreciated.
--------------- Added 1277756882 at 1277756882 ---------------
Also tried $bbuserinfo but no go either.
--------------- Added 1277772863 at 1277772863 ---------------
OK got it working 2 ways...
$vbulletin->userinfo[field5]
and
$vbulletin->userinfo['field5']
My question is now- which is the 'proper' way to code it for maximum compatibility- is there a difference?
if ($post[field5] == "Yes")
Do Something...
also tried it with single quotes around 'field5' but in neither case does the if statement ever become true even when I know Field5 is a Yes/No option box and set to "Yes" exactly.
Is there someway of accessing the custom field from the php file?:confused:
Any help is much appreciated.
--------------- Added 1277756882 at 1277756882 ---------------
Also tried $bbuserinfo but no go either.
--------------- Added 1277772863 at 1277772863 ---------------
OK got it working 2 ways...
$vbulletin->userinfo[field5]
and
$vbulletin->userinfo['field5']
My question is now- which is the 'proper' way to code it for maximum compatibility- is there a difference?