aspose file tools*
The moose likes General Computing and the fly likes Does it happen to you?  Website Form can only be sent through your computer but not others? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Does it happen to you?  Website Form can only be sent through your computer but not others?" Watch "Does it happen to you?  Website Form can only be sent through your computer but not others?" New topic
Author

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

tangara goh
Ranch Hand

Joined: Dec 27, 2009
Posts: 125
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
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
tangara goh
Ranch Hand

Joined: Dec 27, 2009
Posts: 125
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

Joined: May 14, 2008
Posts: 5779
    
    7

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?


JBoss In Action
tangara goh
Ranch Hand

Joined: Dec 27, 2009
Posts: 125
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

Joined: May 14, 2008
Posts: 5779
    
    7

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

Joined: Dec 27, 2009
Posts: 125
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

Joined: May 14, 2008
Posts: 5779
    
    7

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

Joined: Dec 27, 2009
Posts: 125
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does it happen to you? Website Form can only be sent through your computer but not others?
 
Similar Threads
Chat room
does one need anti-virus?
Mock Exam No.1 Marcus Green
remote applet
Click tracking in Java