Re: [PHP] PHP Form Field Validation

2004-07-19 Thread Marcus Strube
> If (formfieldname = empty()) [snip] $value = "0"; if(true==empty($value)) { echo "it's empty"; } [/snip] May be good to know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Form Field Validation

2004-07-18 Thread Jason Barnett
if (empty($_REQUEST['formfieldname'])) { //do something } else { //do something else } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Form Field Validation

2004-07-18 Thread Jason Wong
On Monday 19 July 2004 07:34, Harlequin wrote: > Simple as that eh...? > > If (formfieldname = empty()) The canonical form is: if (empty($doo)) { ... } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intrane

Re: [PHP] PHP Form Field Validation

2004-07-18 Thread Comex
not enough =s. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Form Field Validation

2004-07-18 Thread Harlequin
Simple as that eh...? If (formfieldname = empty()) { Do something { Else { do something else } ??? am I on the right tracks...? -- - Michael Mason Arras People www.arraspeople.co.uk - "John W. Holmes" <[EMAIL PROTECTED]> wrote i

Re: [PHP] PHP Form Field Validation

2004-07-18 Thread John W. Holmes
Harlequin wrote: Just wondering if there's a quick and easy way to validate form fields using PHP. Not really that concerned with actual content by using REGEX but want to ensure users have at-least bothered to put something in and if not display an error with the form field's name maybe. empty() -

[PHP] Re: PHP Form Field Validation

2004-07-18 Thread Manuel Lemos
Hello, On 07/18/2004 07:42 PM, Harlequin wrote: Just wondering if there's a quick and easy way to validate form fields using PHP. Not really that concerned with actual content by using REGEX but want to ensure users have at-least bothered to put something in and if not display an error with the for

[PHP] PHP Form Field Validation

2004-07-18 Thread Harlequin
Evening. Just wondering if there's a quick and easy way to validate form fields using PHP. Not really that concerned with actual content by using REGEX but want to ensure users have at-least bothered to put something in and if not display an error with the form field's name maybe. Any suggestion

Re: [PHP] Form Field

2001-04-17 Thread Jack Dempsey
Why don't you just put the quotes outside the php? That will give you foo -jack Mike wrote: > > What I need to do is append parenthesis to the front and back of > ('1'.$row[0][0]), but when I do that it doesn't parse correctly. What I'm > getting now is: > Value=1San Francisco > What I need is

Re: [PHP] Form Field

2001-04-17 Thread Mike
What I need to do is append parenthesis to the front and back of ('1'.$row[0][0]), but when I do that it doesn't parse correctly. What I'm getting now is: Value=1San Francisco What I need is: Value="1San Francisco" Thanks Mike P [EMAIL PROTECTED] ""Mike"" <[EMAIL PROTECTED]> wrote in message 9b

RE: [PHP] Form Field

2001-04-17 Thread Picard, Cyril
17 avril 2001 15:35 > À:Mike > Cc: [EMAIL PROTECTED] > Objet:Re: [PHP] Form Field > > Hi, > > How about enclose the parameters with quotes ??? > > See ya, > > Marcelo Pereira > Programmer > > - Original Message - > From: Mike <

Re: [PHP] Form Field

2001-04-17 Thread Marcelo Pereira
Hi, How about enclose the parameters with quotes ??? See ya, Marcelo Pereira Programmer - Original Message - From: Mike <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 10:17 AM Subject: [PHP] Form Field > Im trying to pass a form variable t

[PHP] Form Field

2001-04-17 Thread Mike
Im trying to pass a form variable to anouther page with the following: name="R1"> Everything works fine if there are no spaces(Buffalo) but if there are spaces ( San Francisco) I only get the first word.I've never had this problem before and I dont know what I did.Any suggestions? Thanks Mike P