Quote:
Originally Posted by stevenmw
Oh, no you can't use PHP variables in html input fields.
|
Well...strictly speaking, that's true.
But you CAN achieve the effect easily enough:
Code:
<?php
$user = JFactory::getUser();
$ses_id = $user->get('id');
?>
<form action="search.php" method="POST">
<input type="text" name="query" />
<input type="hidden" name="sesid" value="<?php echo $ses_id;?>" />
<input type="submit" value="Search" />
</form>