Re: nested URLs

From: Date: Wed, 26 May 2004 09:45:56 +0000
Subject: Re: nested URLs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186980@lists.php.net to get a copy of this message
On Wed, 26 May 2004, Marco Bleeker wrote: > > <FORM NAME="meeltje" ACTION="/gen/mail1.php" METHOD="POST" > TARGET="melen"> > <INPUT TYPE="HIDDEN" NAME="subject" > VALUE="<?=$row1?>"> > <INPUT TYPE="HIDDEN" NAME="link" > <INPUT TYPE="HIDDEN" NAME="ln" VALUE="<?=$ln?>"> > </FORM> > > Please note the double definition of the ln variable (language, it sends > "NL" for Dutch language; the first one to mview.php and the second one to > mail1.php). How to put this directly in parameters to mail1.php? > > Thanks, Marco (please also reply to my own email adress) > > www.ecocam.com > Marco Bleeker, Amsterdam, NL. > Please regard my email address as confidential - as I do with your's. > > > > VALUE="www.ecocam.com/mview.php?id=<?=$id.(($ln=='NL')?'&ln=NL':'')?>"> Pass the url to url_encode and that should do it to pass it succesfully to your other page. echo "<a href=\"/gen/mail1.php?link=\" . urlencode("http://www.ecocam.com/mview.php?id={$id}" . ( $ln == 'NL' ? '&ln=NL' : '' ) ) . "\">Link</a>"; -- Jeroen Like the creators of sitcoms or junk food or package tours, Java's designers were consciously designing a product for people not as smart as them. -- Paul Graham

« previous php.general (#186980) next »