in reply to CGI : How to put an "&" into a GET-parameter

Replace the "&" with "%26". CGI.pm should be able to convert it back for you. In this case the best thing to do is try submitting it via a form and see what it comes out as... this was done by typing & in the yahoo search field and looking at the query string :)

Good luck. :)





My code doesn't have bugs, it just develops random features.

Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

  • Comment on Re: CGI : How to put an "&" into a GET-parameter

Replies are listed 'Best First'.
Re^2: CGI : How to put an "&" into a GET-parameter
by Flame (Deacon) on Jan 27, 2003 at 23:03 UTC
    Note: Don't let anything try to escape already escaped text.



    My code doesn't have bugs, it just develops random features.

    Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)