Passing Variables
| From: | Ben Ocean | Date: | Fri, 30 Jun 2000 07:00:50 +0000 |
| Subject: | Passing Variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3968@lists.php.net to get a copy of this message | ||
Hi;
I have a script where I successfully call variables like this:
$result = mysql_query("SELECT id, gender, color, name, birth, price, performance_one, performance_more, height, description FROM horse ORDER BY price");
I want to be able to send them to a dynamically generated page like this:
echo "<a href=\"your_horse.php3?name=<? $name?>&color=<? $color?>&gender=<? $gender?>&price=<? $price?>&birth=<? $birth?>&performance_one=<? $performance_one?>&performance_more=<? $performance_more?>&height=<? $height?>&description=<? $description?>\">";
echo mysql_result($result,$counter,"name");
echo "</a><br>";
But for some reason, when I try to call the variables in the dynamically generated page like this:
<?php echo $name?>
Nothing is generated. Can you tell me what I'm doing wrong?
TIA,
BenO