Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 20th, 2004, 01:57 PM
Authorized User
 
Join Date: Sep 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formatting Querystring Field Name

I have a unique problem with a querystring I am trying to pass using post. One of the fields (from an external source) is named 'ltldd' and within the querystring it looks like this "....&requestid=10&ltldd=P....". The problem is when I test the string on the receiving page I get "....&requestid=10<ldd=P...." It appears that the browser is interpreting the '&lt' in hex format and converting to "<" . Is there a way for me to format the name of the field to avoid this problem? I have no control over the name of the field. Any help appreciated.

Reply With Quote
  #2 (permalink)  
Old September 22nd, 2004, 06:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Try Server.URLEncode(), and see if that helps.
But, I would suggest you better change that to something else.

Cheers!

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
  #3 (permalink)  
Old September 23rd, 2004, 04:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Are you sure its not just an output problem? What I mean is maybe you're writing the querystring to the browser to see what it looks like and the browser is turning it into <, but in actual fact its being passed just fine.
Reply With Quote
  #4 (permalink)  
Old September 23rd, 2004, 07:41 AM
Authorized User
 
Join Date: Sep 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using Server.URLEncode() in the script, I think "pgtips" is correct in that it appears that the information is being passed accepted despite it's appearance when I print it out. I think it may just be an output issue as I am receiving the correct info back from the vendor. Thanks/

Reply With Quote
  #5 (permalink)  
Old September 23rd, 2004, 07:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

In that case you want to use Server.HTMLEncode when you output it.
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Phone # field formatting! Nostromo77 ASP.NET 2.0 Basics 3 December 19th, 2006 02:02 PM
formatting integer field gloribel Crystal Reports 1 October 13th, 2005 12:27 PM
formatting a text field in sql server ttbhandari SQL Server DTS 1 October 2nd, 2004 01:06 AM
IndexOf doesn't work on QueryString field? pigtail Javascript 2 April 14th, 2004 12:39 PM
Formatting a Field Containing a Time to AM/PM taleriana XSLT 2 March 16th, 2004 11:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.