Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

commas

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
hi there,

I'd like to pass a large string from vb to a web page. the string has been "split" by the split function. The problem is that one of the elements of the string already contains two commas.
how can i remedy this?

any help appreciated, thanks
 
Is it a problem to pass a string with a comma to a webpage?
Some lines of code will make your problem more clearly.

Maybe server.URLencode() will help you. br
Gerard
 
Also remember many Web Servers limit the size of a GET request to about 255 characters. If you have alot of information to pass than you should do a POST request instead. Wushutwist
 
first, replace the commas in the field with a different character (such as ~)
yourstring = Replace(yourstring, ",", "~")

then when you read it replace the ~ with commas:
yourstring = Replace(yourstring, "~", ",")

Eddy Dumire
eddy.dumire@knowledgecg.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top