To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / *1485 (-5)
  Re: CGI question
 
(...) Javascript story: I just came across someone the other day who was mad because he had to "covert all his equal signs into double-equals so they'd work with netscape". Hrm. Not exactly confidence-inspiring, that. (24 years ago, 7-Apr-00, to lugnet.off-topic.geek)
 
  Re: CGI question
 
(...) nod, exactly. (...) you're very correct, I'm sorry. I don't have much experience with either java or JS, so the two unknowns are very similar. I do know that java is a respectable language though :) Dan (24 years ago, 7-Apr-00, to lugnet.off-topic.geek)
 
  Re: CGI question
 
(...) Reject it on the server end, and serve the form again with an appropriate error message. If you were using the CGI module (1), return an error if (for example) $cgi->param("Vlogin") returns a blank string. Oh, yeah. And don't rely on (...) (25 years ago, 7-Apr-00, to lugnet.off-topic.geek)  
 
  Re: CGI question
 
(...) I agree that JavaScript really isn't the best way to validate this. As long as you're doing CGI, why not do a POST to the same script, evaluate, the answers, and complain if they're not any good? With regards to the multiple fields, I think (...) (25 years ago, 7-Apr-00, to lugnet.off-topic.geek)  
 
  Re: CGI question
 
(...) well, not sure how you can do it with java, but you shouldn't rely on java for form validation anyhow - it's unreliable, and easily overcome. If you had to, you could add another text field, in which case enter won't submit the form, and you'd (...) (25 years ago, 6-Apr-00, to lugnet.off-topic.geek)  


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR