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
fnleong
Forum Newbie
Posts: 18 Joined: Wed May 12, 2004 5:49 am
Post
by fnleong » Thu May 13, 2004 4:31 am
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 » Thu May 13, 2004 5:22 am
I dun know..But u can try this...
Code: Select all
<?php
<a href="userview.php?userID = '{$_REQUEST['userID']}' ;?>">View Profile
?>
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu May 13, 2004 5:28 am
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 » Thu May 13, 2004 5:46 am
also can't
teckyan888
Forum Commoner
Posts: 40 Joined: Tue May 11, 2004 10:46 am
Post
by teckyan888 » Thu May 13, 2004 6:09 am
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...