Re: URIs as variables
| From: | almir | Date: | Wed, 21 Mar 2001 21:35:30 +0000 |
| Subject: | Re: URIs as variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44996@lists.php.net to get a copy of this message | ||
try with
uri=<? echo implode("&", $HTTP_GET_VARS);?>
""Issac Goldstand"" <neoi@writeme.com> schrieb im Newsbeitrag
news:99at42$5be$1@toye.p.sourceforge.net...
> Newbie question here. I am trying to pass a varaible containing a URI
> across a few scripts. Basically, the first script get's a query string
> including the URI (eg
> http://foo.bar/script1.php?url=script2.php?var1=a&var2=b).
> Now, script1 contains a form pointing to script3 so basically, I have the
> user form and then:
>
> <?
> echo "<INPUT TYPE=\"HIDDEN\" NAME=\"url\"
> VALUE=\"$url\">";
> ?>
>
> (I have register-gloabls enabled and am not sure whether the call to
script1
> will be POST or GET)
>
> This creates a slight problem, as, using the above example once again, PHP
> will send the browser the line:
>
> <INPUT TYPE="HIDDEN" NAME="url" VALUE="script2.php?var1=a">
>
> But it totally chops off everything from the "&" and onwards. How can I
fix
> it to get the entire URI?
>
> Thanks,
> Issac
>
>
> --
> Internet is a wonderful mechanism for making a fool of
> yourself in front of a very large audience.
> --Anonymous
>
> Moving the mouse won't get you into trouble... Clicking it might.
> --Anonymous
>
> PGP Key 0xE0FA561B - Fingerprint:
> 7E18 C018 D623 A57B 7F37 D902 8C84 7675 E0FA 561B
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>