Re: include in $ <a href ?

From: Date: Thu, 19 Oct 2000 08:12:04 +0000
Subject: Re: include in $ <a href ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21116@lists.php.net to get a copy of this message
mike johnson wrote: > > This is what I have . I want $pics to be what ever is in the CURRENT URL. > but since $pics is in php tags I cant do <? echo $pics ?> . Anyone know how > to do this? > <? //Thumbs load > if ($picture == "apryl1") { > echo '<a > > href="/main.php?show=pics&pics=$pics&thumbs=$thumbs&picture=apryl2"><img > > src="/pics/apryl/apryl1.jpg"><br><center>Next</center></a>'; > } ...... > Try this: <? echo '<a href="/main.php?show=pics&pics='.$pics.'&thumbs='.$thumbs.'&picture=apryl2"> <img src="/pics/apryl/apryl1.jpg"><br><center>Next</center></a>'; ?> Hope this helps. :) -- Pavel a.k.a. Papi

« previous php.general (#21116) next »