Re: Strings in URL

From: Date: Tue, 27 Mar 2001 02:57:13 +0000
Subject: Re: Strings in URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45685@lists.php.net to get a copy of this message
In article <99ou1p$tif$1@toye.p.sourceforge.net>, claudiasmt@sprynet.com ("Claudia") wrote: > $headline=urlencode("$headline"); > print "<a href > > ='http://www.contus.com/test_quote/quotepage.php3?site=$site&page=miniquote& > subject=$headline'><b>Contact us for more > information</b></a></font>"; > > Then in the quotepage.php3 file > > if( $page == "miniquote" ) > { > > print "Get A Quote<br>"; > print "$subject"; > print "$site"; > > INCLUDE "mini_quote.inc.php3"; > } > > --->The print "$subject"; line prints nothing. > > If I print $headline right after I assign the variable it prints correctly > with +s in place of the blanks for this variable. By any chance is that "print" line occuring within a function? The fact that it prints fine then becomes "blank" later sounds like a classic global scope vs. local scope symptom. -- CC

« previous php.general (#45685) next »