php - passing two variables to another page

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
cjkeane
Forum Contributor
Posts: 217
Joined: Fri Jun 11, 2010 1:17 pm

php - passing two variables to another page

Post by cjkeane »

Hi everyone,

i can pass 1 variable to another page successfully, but now i need to pass 2 variables and i can't seem to identify where the problem is in the below line of code. Does anyone have any ideas?

Code: Select all

<?php
echo '<td nowrap><a href="page2.php?id=' . $result['id']  .'&Email='. $result['email']' " > '. $result['email'].' </a></td>';
?>
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: php - passing two variables to another page

Post by McInfo »

There is a concatenation operator missing in there. See if you can find where it should go. Also, there is a superfluous space character nearby.
cjkeane
Forum Contributor
Posts: 217
Joined: Fri Jun 11, 2010 1:17 pm

Re: php - passing two variables to another page

Post by cjkeane »

got it! thanks.
Post Reply