newbie question about sending hidden form field
Posted: Wed Mar 03, 2010 8:05 am
I am trying to send the variable "userid" via a hidden form field on a php page... I know that if I type:
it successfully outputs the userID assigned to the user (it's pulled from a get_session() function).
However, I am stumped in terms of translating that into sending that variable via a hidden form field:
The "value=" part is where I'm stuck.
Please help a newb!

Code: Select all
<?PHP print 'userID: '.$user->userID.'<br />'; ?>However, I am stumped in terms of translating that into sending that variable via a hidden form field:
Code: Select all
<input type="hidden" name="userid" value="<?php $userID ?>" />Please help a newb!