• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting parameters from the URL

 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I found the code below using google which works fine but i don't understand it. now unfortunately i've hit a problem; one of my parameters has an & in it. this has been escaped to & but the code below just picks out the & and my program breaks down.

Could someone explain the code please.

Frank


[ March 24, 2005: Message edited by: Eric Pascarello ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is the code being escaped?

The & should be escape to %27 and it would make your life easier.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric ic correct. There is a big difference between URL encoding and HTML encoding.
 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not entirely sure how the & is being escaped. I use cocoon and it's serverpages technology. I query a database table and put the returned results into a list box. Viewing the source of this page I can see that any record containing an & has this escaped to &

Frank
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic