i wan to pass the sign in userid to nxt page.nhow?10s

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fnleong
Forum Newbie
Posts: 18
Joined: Wed May 12, 2004 5:49 am

i wan to pass the sign in userid to nxt page.nhow?10s

Post 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 
?>
teckyan888
Forum Commoner
Posts: 40
Joined: Tue May 11, 2004 10:46 am

Post by teckyan888 »

I dun know..But u can try this...

Code: Select all

<?php

<a href="userview.php?userID = '{$_REQUEST['userID']}' ;?>">View Profile 

?>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.. ;)
fnleong
Forum Newbie
Posts: 18
Joined: Wed May 12, 2004 5:49 am

Post by fnleong »

also can't
teckyan888
Forum Commoner
Posts: 40
Joined: Tue May 11, 2004 10:46 am

Post 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...
Post Reply