Jump to content

Recommended Posts

I am using an html form that is returning data from a textarea box. It sends the data via GET to a confirmation page. If users confirm, it sends the data to a MYSQL db.

 

All is well unless someone enters a carriage return (Return key/line break) in their text. If they do, they see a page that says "Bad request! Your browser sent a request that this server could not understand"

 

In the command line, it appears that the carriage return shows up as this: %0D%0A

 

I did a string replace on the confirmation page that replaces that string with a space, but apparently the replacement occurs after the data has been sent to the, um, server in the command line. I don't know of a way to process the data in the original form before it has been sent via GET.

 

Any insight would be very much appreciated.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.