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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input question - data formats

Status
Not open for further replies.

new2game

Programmer
Jan 20, 2004
10
US
I've done little html in the past and need to create a simple process. 1 textarea input with a submit button.

I have the page written. It successfully transmits data and a response is returned. The problem is that the input can contain spaces and other special charaters. The app that receives posts converts non-alphanumeric charcters. For example a post of "This is a test" is received as "This+is+a+test".

The text area can contain "CRLF", "?", "<", ">", "*", spaces and more. There charaters come out as hex values.

I don't know java script, vb etc and can't use ASP. Everything but the URL the form posts to will be residing on my desktop.

Any ideas?

page is a simple as

<P><TEXTAREA NAME="name" ROWS="15" COLS="74"></TEXTAREA></P>
<P><INPUT NAME="name" TYPE="submit" VALUE="Submit"></form>

new2game
 
is there a question in there? I may be just being thick this morning [morning] but I can't see what you are asking for!




Chris.

Indifference will be the downfall of mankind, but who cares?
 

What form method are you using? Get or Post? Try changing to the other and see if you get the same results.

Hope this helps,
Dan
 
Thanks Dan, tried changing 'Post' to 'Get'.... resp = 503.

Chris, a post of "This is a test" should not have the plus marks in it at the receiving end. Instead of getting "This+is+a+test" it should be "This is a test". So, the question is, how do I post data without non-alphanumeric characters like spaces, parens, brackets, question marks etc.. being converted to '+' and hex values etc...?

 
the app that is receiving the data is the issue; so what is the app;

once you know what language the app is you can then focus on the way that language parses strings;

more than likely whatever language it is (php,asp,server-side JS, ...) will only require a few lines of script to essentially undo what it did, that is if it turns your 'space' character into a '+' character you will need to turn it back into a 'space' character;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top