RE: Form Validation

2004-07-07 Thread John Pretti
-Original Message- From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 11:47 AM To: [EMAIL PROTECTED] Subject: Re: Form Validation John Pretti wrote: > OK now I am really lost. Here is what I am not following, the first > time the form is run it wil

Re: Form Validation

2004-07-07 Thread Gunnar Hjalmarsson
John Pretti wrote: OK now I am really lost. Here is what I am not following, the first time the form is run it will have no parameters so the form will just be presented; however if someone clicks promote without selecting a directory it will still be blank, so how can perl determine when the promo

Re: Form Validation

2004-07-07 Thread JupiterHost.Net
John Pretti wrote: -Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:17 PM To: John Pretti Cc: [EMAIL PROTECTED] Subject: Re: Form Validation John Pretti wrote: Hi all, Hello, What is the best way to validate a form element? I am using

RE: Form Validation

2004-07-07 Thread John Pretti
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 06, 2004 3:17 PM To: John Pretti Cc: [EMAIL PROTECTED] Subject: Re: Form Validation John Pretti wrote: > Hi all, Hello, > What is the best way to validate a form element? I am using the fol

Re: Form Validation

2004-07-06 Thread JupiterHost.Net
John Pretti wrote: Hi all, Hello, What is the best way to validate a form element? I am using the following code to generate a set of radio buttons; how can I ensure that one of the buttons is checked before processing the rest of the script? Assuming %label is hw => 'H W here', nw => 'North West

Form Validation

2004-07-06 Thread John Pretti
Hi all, What is the best way to validate a form element? I am using the following code to generate a set of radio buttons; how can I ensure that one of the buttons is checked before processing the rest of the script? print $q->start_multipart_form, $q->p("Please select a direc

Re: CGI.pm and form validation

2001-07-16 Thread Ondrej Par
joni > > -Original Message- > From: Pete Sergeant [mailto:[EMAIL PROTECTED]] > Sent: 13 July 2001 15:43 > To: [EMAIL PROTECTED] > Subject: Re: CGI.pm and form validation > > > > That which I say three times it true: > > Do not trust user input. Do N

RE: CGI.pm and form validation

2001-07-16 Thread PURMONEN, Joni
cks which would help making the form more secure in the server end? joni -Original Message- From: Pete Sergeant [mailto:[EMAIL PROTECTED]] Sent: 13 July 2001 15:43 To: [EMAIL PROTECTED] Subject: Re: CGI.pm and form validation That which I say three times it true: Do not trust user inpu

RE: CGI.pm and form validation

2001-07-13 Thread John Edwards
Doing this you get the best of both worlds. Speed for the client in simple form validation and security on the server. I think you need to drink less coffee dude... John -Original Message- From: Pete Sergeant [mailto:[EMAIL PROTECTED]] Sent: 13 July 2001 15:43 To: [EMAIL PROTECTED] Subjec

Re: CGI.pm and form validation

2001-07-13 Thread Pete Sergeant
That which I say three times it true: Do not trust user input. Do NOT trust user input. DO NOT TRUST USER INPUT. As mentioned, users can turn off javascript. You're assuming of course that skr!pT k1DD13s use browsers. It is trivial to build an HTTP request and telnet into the server at port 80.

Re: CGI.pm and form validation

2001-07-13 Thread K.L. Hayes
Hello Jim, I noticed a response telling you to use JavaScript to validate your form input. Personally I browse with my JavaScript turned off to avoid pop-up ads so I don't believe it is a good idea to try to validate information using it. Here is an excerpt from my Sams book that could help you

RE: CGI.pm and form validation

2001-07-13 Thread Brett W. McCoy
With JS you can do it all client-side > and only allow the form to be submitted once it's passed validation. I think it's still a good idea to do form validation on the server side also -- the client might have JavaScript turned off, for instance. Then you've got both base

RE: CGI.pm and form validation

2001-07-13 Thread John Edwards
be submitted once it's passed validation. John -Original Message- From: Smith, Jim R [mailto:[EMAIL PROTECTED]] Sent: 13 July 2001 13:17 To: [EMAIL PROTECTED] Subject: CGI.pm and form validation I've created a CGI program that asks a user to fill in a number of fields. I wou

CGI.pm and form validation

2001-07-13 Thread Smith, Jim R
I've created a CGI program that asks a user to fill in a number of fields. I would like to validate that the required data is present and in correct format. A date, time, phone number, Ip Address etc. Obviously I could code a number of regex's, but I was wondering if there was a module or script t