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 #173522 is a reply to message #173521] Sun, 17 April 2011 21:48 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/17/2011 4:39 PM, lamb wrote:
> 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?
>

Why do you have

arg_separator.output=&

in your php.ini file?

> Or there is a way, using mod_rewrite, to transform
> http://mysite.com/index.php?language=fr&osCid=xxxxx in
> http://mysite.com/index.php?language=fr&osCid=xxxxx.
>
>
> Thanks!

You do NOT want to do this. What happens if you get a parameter like:
http://www.example.com/albums?artist=sonny+&+cher

You would NOT want to convert that one.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Sat Nov 30 05:29:58 GMT 2024

Total time taken to generate the page: 0.04615 seconds