Subject:
|
Re: CGI question
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Fri, 7 Apr 2000 17:33:42 GMT
|
Viewed:
|
83 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
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:
![](/news/x.gif) | | 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 (...) (24 years ago, 6-Apr-00, to lugnet.off-topic.geek)
|
14 Messages in This Thread: ![CGI question -Paul Foster (6-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: CGI question -Dan Boger (6-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/246.gif) ![Re: CGI question -Christopher Lindsey (7-Apr-00 to lugnet.off-topic.geek)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: CGI question -Jeremy H. Sproat (7-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/246.gif) ![Re: CGI question -Dan Boger (7-Apr-00 to lugnet.off-topic.geek)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: CGI question -Matthew Miller (7-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: CGI question -Jeremy H. Sproat (7-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: CGI question -Steve Bliss (8-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: CGI question -Matthew Miller (8-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: CGI question -Steve Bliss (10-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: CGI question -Matthew Miller (10-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: CGI question -Dan Boger (10-Apr-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: CGI question -Todd Lehman (10-Apr-00 to lugnet.off-topic.geek)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![You are here](/news/here.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|