try this

        $myurl=urlencode(base64_encode($url));

        in the input type

        echo "<INPUT TYPE=\"HIDDEN\" NAME=\"url\"
VALUE=".urldecode(base64_decode($myurl).">";



On 22-Mar-2001 Issac Goldstand wrote:
> Nope.  That gave me:
> 
> <INPUT TYPE="HIDDEN" NAME="url" VALUE="script2.php?var1=a&b">
> 
> I'd need to enumerate $HTTP_GET_VARS variable _keys_ too, but I don't know
> how...
> Also, how can I get it to work for both GET & POST methods?  Is that
> possible?
> 
> Thanks,
>   Issac
> 
> ""almir"" <[EMAIL PROTECTED]> wrote in message
> 99b66u$q0o$[EMAIL PROTECTED]">news:99b66u$q0o$[EMAIL PROTECTED]...
>> try with
>>
>> uri=<? echo implode("&", $HTTP_GET_VARS);?>
>>
>>
>> ""Issac Goldstand"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
>> 99at42$5be$[EMAIL PROTECTED]">news:99at42$5be$[EMAIL PROTECTED]...
>> > 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: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>> >
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

               Rui Barreiros
          Software Developer

WEBSOLUT - Soluções Internet
Emailto: [EMAIL PROTECTED] 
Personal Info: http://websolut.net/people/rui.html

As informações contidas neste email são confidenciais
e destinam-se apenas à(s) pessoa(s) a quem foi enviado:
http://websolut.net/confidencialidade-responsabilidade.html


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to