![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have read a few comments against doing validation using JavaScript [...] |
|
[...] I found a page that seems to do validation using POST |
|
I wondered what would happen if I pasted a long sentence from the same page in the login box. I got a message of: 'HTTP 500.100 Internal Server Error'. Is this a problem of validation with POST [...] |
#3
| |||
| |||
|
|
On 06/10/2005 15:45, "GEO" Me (AT) home (DOT) here wrote: I have read a few comments against doing validation using JavaScript [...] Care to identify those comments? There is no problem with employing client-side validation (when done well). The issue lies with relying on such a scheme.....<snip |
|
One doesn't perform input validation using POST. It's a HTTP transfer method (along with GET, HEAD, PUT, etc.) snip |
|
Is this a problem of validation with POST [...] No, of course not. Every form you encounter on the Web should be employing server-side checks, and most of those forms will be sending their data to that server using the POST method. |
#4
| |||
| |||
|
|
I have read a few comments against doing validation using JavaScript, and when I found a page that seems to do validation using POST I wondered what would happen if I pasted a long sentence from the same page in the login box. I got a message of: 'HTTP 500.100 Internal Server Error'. Is this a problem of validation with POST, or just of the setup of their server? Page where it happened: http://customer.dynix.com/users/logon.asp Thanks. Geo Geo, |
#5
| |||
| |||
|
|
"GEO" Me (AT) home (DOT) here wrote: I have read a few comments against doing validation using JavaScript, and when I found a page that seems to do validation using POST I wondered what would happen if I pasted a long sentence from the same page in the login box. I got a message of: 'HTTP 500.100 Internal Server Error'. Is this a problem of validation with POST, or just of the setup of their server? Page where it happened: http://customer.dynix.com/users/logon.asp |
|
Geo, I agree with everything Mike said. In addition: The Internal Server Error indicates that the code at the server failed to adequately check the input from the form. In this case, it allowed a very long input (the sentence you copied) where only a short one (an ID or password) was expected. The most likely result is that the long data was stored into a short field and slopped over the top of adjacent data that was important. Things went downhill from there. Every time a programmer makes an assumption, a system dies somewhere. |
![]() |
| Thread Tools | |
| Display Modes | |
| |