Re: form value

From: Date: Fri, 21 Jul 2000 12:59:41 +0000
Subject: Re: form value
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-7555@lists.php.net to get a copy of this message
> > >1) One value is a string that is inputed through a <input type="text"> box, > > >the value is a URL link, the link is passed to the next page in the URL, but > > >the script receives an empty string. You have to explicitly set the name of the input in the form: <input type="text" name="url"> and you'll find the variable $url in the next script (the one called by the "action" of the form...) > > After that, if you ever need to send one of those values through an > > <A > > HREF="http://www.mysite.com/secondscript.php3?URL=$TheirURL"> > > tag, you'll > > first need > > to make their variable URL friendly by using: > > > > $TheirURL = rawurlencode($TheirURL) > > Where would this go? In with script? You can simply write: <A HREF="http://www.mysite.com/secondscript.php3?URL=<?php echo rawurlencode($TheirURL); ?>"> Ciao Cesare

« previous php.general (#7555) next »