Re: [PHP] Validating user input

2003-06-06 Thread Misha Peric
EMAIL PROTECTED] > is_numeric and strlen ? > > -Original Message- > From: Shaun [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 03, 2003 7:21 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Validating user input > > > Hi, > > I am creating a timesheet applica

RE: [PHP] Validating user input

2003-06-04 Thread Lars Torben Wilson
IL PROTECTED] > Sent: Tuesday, June 03, 2003 11:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Validating user input > > > Hi, > > I am creating a timesheet application, how can I make sure that a user has > entered a number, and that the number is a whole number or a d

RE: [PHP] Validating user input

2003-06-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Shaun [mailto:[EMAIL PROTECTED] > Sent: 03 June 2003 10:21 > > I am creating a timesheet application, how can I make sure > that a user has > entered a number, and that the number is a whole number or a > decimal up to 2 > places, and that the number is less

RE: [PHP] Validating user input

2003-06-03 Thread Sichta Daniel
Another way is to do it on client side (javascript) DS -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Validating user input Hi, I am creating a timesheet application, how can I make sure that a user

Re: [PHP] Validating user input

2003-06-03 Thread John Coggeshall
Try this... I don't know if this will suit your needs but it'll give you an idea: 0 && $a < 24) { $time = number_format($a, 2, '.', ''); echo "Time: $time\n\n"; } else { echo "Invaild Time.\n\n"; } ?> Regards, J

RE: [PHP] Validating user input

2003-06-03 Thread electroteque
is_numeric and strlen ? -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Validating user input Hi, I am creating a timesheet application, how can I make sure that a user has entered a number, and that the

[PHP] Validating user input

2003-06-03 Thread Shaun
Hi, I am creating a timesheet application, how can I make sure that a user has entered a number, and that the number is a whole number or a decimal up to 2 places, and that the number is less than 24? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] validating user input

2002-04-24 Thread SP
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: April 24, 2002 3:49 AM To: [EMAIL PROTECTED] Subject: [PHP] validating user input Hi the M.L. I have to validate forms user inputs before the construction of my query to my Oracle DB Does anybody know the li

[PHP] validating user input

2002-04-24 Thread DrouetL
Hi the M.L. I have to validate forms user inputs before the construction of my query to my Oracle DB Does anybody know the list of characters that should be rejected (for example ;) ? Do you have a function to validate it ? regards Laurent Drouet -- PHP General Mailing List (http://www.p

RE: [PHP] Validating User Input

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, SP wrote: > Now should I include all those special characters? I want it to be hack > proof so I don't want to add the user input into my database and have > something bad happen. > > Which ones are safe? > ~ ` ! @ # $ % ^ & * ( ) _ + - = [ ] \ { } | : " ; ' < > ? , . / All

RE: [PHP] Validating User Input

2002-04-19 Thread SP
; ? , . / -Original Message- From: Danny Shepherd [mailto:[EMAIL PROTECTED]] Sent: April 19, 2002 9:32 AM To: Php Subject: Re: [PHP] Validating User Input Hi, \?\,\. \/'; $regexp='^['.$pattern.']{'.$min.','.$max.'}$'; if (e

Re: [PHP] Validating User Input

2002-04-19 Thread Danny Shepherd
brackets - not sure how to go about getting them (escaping them didn't seem to work). HTH Danny. - Original Message - From: "SP" <[EMAIL PROTECTED]> To: "Php" <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 1:57 PM Subject: [PHP] Validating User Inpu

[PHP] Validating User Input

2002-04-19 Thread SP
I am trying to validate an user's input. I can get the ereg function to work if I just type in the pattern I'm searching for but my problem is I want to build the pattern through a variable first and then use that variable in the ereg function. For example, I want to check an input that's only t