[SOLVED]HELP: Sending Values question

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
User avatar
bironeb
Forum Commoner
Posts: 59
Joined: Thu Nov 20, 2003 12:02 pm

[SOLVED]HELP: Sending Values question

Post by bironeb »

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.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

User avatar
bironeb
Forum Commoner
Posts: 59
Joined: Thu Nov 20, 2003 12:02 pm

Post by bironeb »

so like this?

Code: Select all

<?php
<a href="index.php?main=show_record & user_id=$user_id">$user_name, $user_id</a>
?>
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

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. =)
User avatar
bironeb
Forum Commoner
Posts: 59
Joined: Thu Nov 20, 2003 12:02 pm

Post by bironeb »

Cool Thanks guys!!
Post Reply