• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does it happen to you? Website Form can only be sent through your computer but not others?

 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear experts,

I just discovered to my horror that my website forms can only be sent from my own computer and others are having problem..getting http 500 error!

Can somebody advise me what is going on...it's so scary....

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are the requests sent from your machine different from the ones sent from other machines? Obviously, the server sees something different, so I'd start by examining the requests - maybe by logging all request parameters and headers.
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

Actually, my friend entered text whereas my field only accepts numbers. Perhaps its due to the field box that is a bit big.


And may be I should add in rule to make text invalid entry in this case.

Thanks again for your reply.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you ensuring that only numbers can be entered in that field? Via a browser-side script? Does your friend have scripting turned off?
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used regular expressions for my other validation. But, this time round, I just use css to make the box smaller. Still got the matching codes that need to be resolved
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regular expressions where - within your server-side code or within client-side scripts? CSS will not prevent non-digits from being entered (unless there is something about css that I forgot)
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regular expression is within my client-side scripts. Yes...by making the box smaller is a lazy way of doing.....

Cos now have to concentrate on the marketing aspects...like bring in the customers...till now....there's Zero base......sigh....

But, thanks....for your concern....I appreciate it.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Client-side scripts will not work if the user has turned off scripts in his browser.

Also, you should never reply on only client-side code to validate data, you should always also validate the data on the server. There are too many ways to circumvent client side checking and thereby submit invalid data.
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow...I didn't know about that....

But, I havn't seen any validation codes on server side.....

Would you mind share with me some examples? Any links that can allow me read up about this server side validation method? Very keen to learn about it. Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic