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
bironeb
Forum Commoner
Posts: 59 Joined: Thu Nov 20, 2003 12:02 pm
Post
by bironeb » Mon Apr 12, 2004 5:32 pm
Is it possible to send more then one variables on a href? For example:
Code: Select all
<?php
<a href="index.php?main=show_record, ?user_id=$user_id">$user_name, $user_id</a>
?>
Last edited by
bironeb on Mon Apr 12, 2004 5:51 pm, edited 1 time in total.
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Mon Apr 12, 2004 5:34 pm
bironeb
Forum Commoner
Posts: 59 Joined: Thu Nov 20, 2003 12:02 pm
Post
by bironeb » Mon Apr 12, 2004 5:43 pm
so like this?
Code: Select all
<?php
<a href="index.php?main=show_record & user_id=$user_id">$user_name, $user_id</a>
?>
JAM
DevNet Resident
Posts: 2101 Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:
Post
by JAM » Mon Apr 12, 2004 5:48 pm
Rather:
Code: Select all
<?php
echo "<a href="index.php?main=show_record&user_id=$user_id">$user_name, $user_id</a>";
?>
Removed the spaces. Look at the URI on this very page to get a feel for the look. =)
bironeb
Forum Commoner
Posts: 59 Joined: Thu Nov 20, 2003 12:02 pm
Post
by bironeb » Mon Apr 12, 2004 5:50 pm
Cool Thanks guys!!