RE: [PHP] Re: Checking for empty values sent from a form[Scanned]

2003-03-06 Thread Michael Egan
March 2003 14:24 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Checking for empty values sent from a form[Scanned] You usually don't want spaces either foreach($_POST as $val) { if(strlen(trim($val)) < 1) // do what you want } "Rick Emery" <[EMAIL PROTECTED]&g

Re: [PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread Leendert
{ > do something > } > - Original Message - > From: "shaun" <[EMAIL PROTECTED]> > To: <> > Sent: Thursday, March 06, 2003 7:45 AM > Subject: [PHP] Re: Checking for empty values sent from a form > > > thanks for your reply but I was

Re: [PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread Lowell Allen
(I think this is from the Welling and Thomson book -- PHP and MySQL Web Development.) -- Lowell Allen > From: "shaun" <[EMAIL PROTECTED]> > Date: Thu, 6 Mar 2003 13:45:52 - > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Checking for empty values sent from a form >

Fw: [PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread Rick Emery
foreach($HTTP_POST_VARS as $val) if($val=="") { do something } - Original Message - From: "shaun" <[EMAIL PROTECTED]> To: <> Sent: Thursday, March 06, 2003 7:45 AM Subject: [PHP] Re: Checking for empty values sent from a form thanks for your re

[PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread shaun
thanks for your reply but I was wondering if there was a way to check through all of the form entries with an easier way that if ($_POST['your_input_name'] == '' || $_POST['your_input_name'] == '' || $_POST['your_input_name'] == '' || $_POST['your_input_name'] == '' ) //etc // field is empty th

[PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread Niels Andersen
Since input from a form are strings, you can check like this: if ($_POST['your_input_name'] == '') // field is empty "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there an easy way to scan through an array of values sent from a form to > see if any of them are empty?