FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » & - form and session problem!
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: & - form and session problem! [message #173523 is a reply to message #173521] Mon, 18 April 2011 01:54 Go to previous messageGo to previous message
Mr. B-o-B is currently offline  Mr. B-o-B
Messages: 42
Registered: April 2011
Karma:
Member
cried from the depths of the abyss:

> Hello.
>
> I'm running an ecommerce site using php.
>
> I have problem with customers that doesn't accept cookies.
>
> In these cases PHP uses the GET params to transfer session in (osCid im
> my case) from a page to another.
>
> But I have problems with forms!
>
> When I have a form the link:
>
> http://mysite.com/index.php?language=fr&osCid=xxxxx
>
> is automatically transformed in
>
> http://mysite.com/index.php?language=fr&osCid=xxxxx
>
> where & becomes &
>
> So in the arrival page $_GET[osCid] is empty!
>
> There is a way to avoid this substitution?

Take a look at urlencode

http://php.net/manual/en/function.urlencode.php

and urldecode on the other side.

Mr. B-o-B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mysqli - can I bind wildcard params, and just get a result back to make a hash?
Next Topic: Parameter passing question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 16:41:12 GMT 2024

Total time taken to generate the page: 0.08115 seconds