Page 1 of 1

php - passing two variables to another page

Posted: Tue Dec 06, 2011 7:34 pm
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>';
?>

Re: php - passing two variables to another page

Posted: Tue Dec 06, 2011 8:44 pm
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.

Re: php - passing two variables to another page

Posted: Tue Dec 06, 2011 9:21 pm
by cjkeane
got it! thanks.