Re: Passing Variables

From: Date: Fri, 30 Jun 2000 08:06:02 +0000
Subject: Re: Passing Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3980@lists.php.net to get a copy of this message
> ?> > <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 No, this is not what I suggested. Since when does <? $var?> display the variable? You need <?echo $var?> > 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\">"; This will work if you define your variables correctly. Try a simple test. <? $name = urlencode("Ben Ocean") echo "<a href=\"your_horse.php3?name=$name\">Test link</a>"; ?> Load up this simple 2 liner and see what it does. -Rasmus

« previous php.general (#3980) next »