Re: Passing Variables

From: Date: Fri, 30 Jun 2000 07:56:35 +0000
Subject: Re: Passing Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3978@lists.php.net to get a copy of this message
At 12:07 AM 6/30/2000 -0700, you wrote:
                              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?>\">"; Uh, what are you doing? What I am seeing is: <? echo "... <? $var?> ..."; ?> PHP tags inside PHP tags? get rid of that nested set of tags throughout your stuff and it shold work fine.
Well, I tried this
                        ?>
                        <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?>">
                        <?
which is I believe what you suggested, and it didn't work either. I even tried 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\">";
which didn't work either. Rasmus, if I knew what I was doing, I wouldn't trouble you! TIA, BenO

« previous php.general (#3978) next »