Page 1 of 1
i wan to pass the sign in userid to nxt page.nhow?10s
Posted: Thu May 13, 2004 4:31 am
by fnleong
is it correct to do like this if i wan to send the current sign in user id tp next page.
and the next page will have the $_GET userID function
Code: Select all
<?php
<a href="userview.php?userID=<?php echo $row["userID"];?>">View Profile
?>
Posted: Thu May 13, 2004 5:22 am
by teckyan888
I dun know..But u can try this...
Code: Select all
<?php
<a href="userview.php?userID = '{$_REQUEST['userID']}' ;?>">View Profile
?>
Posted: Thu May 13, 2004 5:28 am
by feyd
teckyan888 wrote:I dun know..But u can try this...
Code: Select all
<?php
<a href="userview.php?userID = '{$_REQUEST['userID']}'">View Profile
?>
probably more like that..

Posted: Thu May 13, 2004 5:46 am
by fnleong
also can't
Posted: Thu May 13, 2004 6:09 am
by teckyan888
Code: Select all
<?php
if (isset($HTTP_SESSION_VARS['valid_user']))
{
echo '<form action="userview.php?UserID='.$HTTP_SESSION_VARS['valid_user'].'" method="POST">';
echo '<input type="submit" name="submit" value="View Your Details">';
echo '</form>';
}
?>
U try this...