PHP form sending too much information/data?
|
demo 19 Dec 2008 08:28am I have a PHP form that simply updates a certain field in a MySQL database. It's for articles on my site so I can easily edit articles without logging into PHPMyAdmin, etc. The problem is, is that when I try to edit and submit a long article, it gives me an error (typical Internet Explorer, 'Page Cannot Be Displayed') but if I try to edit and submit a short article, no error pops up. I think it's because in the URL, it goes blah.php?article=*article here* which makes the link really long and not be able to continue. Because when I look at the link when it shows the error, it looks like it got cut off. How can I fix this problem? BTW, the error pops up after I send the edited content on the page where I use PHP to UPDATE MySQL. Thanks! Oh and if you need more information, just ask! |
Answers
|
demo 19 Dec 2008 09:47am Put what sounds like a potential massive security hole to one side it sounds like you are using GET as the action of the form when you want to be using POST. GET has a maximum size which can vary depending on your browser, but is normally 2048 characters. |
Related
Submit Answer
You must be logged in to post an answer. Please Login or Register.
Powered by phpMyAnswers.