Subject:
|
Re: CGI question
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Fri, 7 Apr 2000 17:33:42 GMT
|
Viewed:
|
111 times
|
| |
| |
Dan Boger wrote:
>
> Paul Foster wrote:
> >
> > I have the following perl script that I inherited in
> > a program I am supposed to fix, the perl I understand,
> > but I'm not really up on Forms..
> >
> > http://www.thefosterfamily.org/junk.html
> >
> > Normally, you enter a login and then hit the submit
> > button and things work well. If you hit submit with no
> > text in the login field, the javascript gives you an error
> > message, but if you leave the login field blank and hit
> > return, the program goes on leaving the field blank.
> >
> > How can I check if the user has put data into the login field?
>
> 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 have to use the submit button.
>
> HTH
>
> :)
>
> Dan
Thanks for all the responses from everybody, the final, simplest solution
was to add the second text box.
As for the javascript, not my choice. This is an internal prog anyways
that runs on local, generic login workstations so browser options aren't
supposed to be changed (in theory).
--
Paul Foster
http://www.thefosterfamily.org/
|
|
Message is in Reply To:
| | 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)
|
14 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|