Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 18:21, Craig Donnelly wrote: > Ok, in simple form - If the submit button was clicked, > If some one hits enter this would be a problem, easy way to resolve > this would be to have a hidden form element flagged and to terst for that > instead of the > submit button, would

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
Ok, in simple form - If the submit button was clicked, If some one hits enter this would be a problem, easy way to resolve this would be to have a hidden form element flagged and to terst for that instead of the submit button, wouldnt you agree Jason? Craig "Jason Wong" <[EMAIL PROTECTED]> wrote

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 17:34, Craig Donnelly wrote: > If you want to test to see if a form has been submitted, I would suggest > that you > use the name from the submit button. > > e.g - > > if(isset($_POST['sendform'])){ > echo "Form has been submitted!"; > } > > So basically this check

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
You usually don't want spaces either foreach($_POST as $val) { if(strlen(trim($val)) < 1) // do what you want } "Rick Emery" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > foreach($HTTP_POST_VARS as $val) > if($val=="") > { > do something > } > - Original M

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

2003-03-06 Thread Lowell Allen
You can write a function and when using it in a script insert $HTTP_POST_VARS as the argument: function filled_out($form_vars) { foreach ($form_vars as $key => $value) { if (!isset($key) || ($value == "")) { return false; } } return true; } (I think this i

Re: [PHP] Re: Checking for HTTP:// at the start of a string and more ////

2003-03-01 Thread Ernest E Vogelsinger
At 01:17 02.03.2003, Kris Jones said: [snip] >>Untested: >> >>if (preg_match('/^http:\/\/[^\.\s]+\.[^\s]+\/$/i', $string)) >>// valid string >>else >>// invalid string >> > >I've also been looking for this information. Can you please point me to a >l

Re: [PHP] Re: Checking File Size BEFORE Uploading

2002-10-14 Thread Jason Wong
On Tuesday 15 October 2002 04:29, Monty wrote: > Nicos, the problem is that MAX_FILE_SIZE doesn't check the file size before > it's uploaded to the server, it only works afterwards. So, you have to > first wait for the file to upload before you know whether or not it's too > large. Actually it do

Re: [PHP] Re: checking

2002-07-01 Thread Uli B
"==" (2) is for comparison while you are accidently doing assignments by "=" (1) if ($lastname="") - wrong if ($lastname=="") - better that's why u r screwed up here :-) Uli At 17:49 30.06.02 -0500, Richard Lynch wrote: >In article <03d201c21db6$7deb2110$7800a8c0@leonard> , [EMAIL PROTECTED] >(L

Re: [PHP] Re: Checking to see what value error_reporting is set at?

2002-03-10 Thread David Robley
In article <01ba01c1c7ca$bd95b1f0$0501a8c0@zaireweb>, [EMAIL PROTECTED] says... > I ment, if you re-set it, as im setting it to error_reporting(E_ALL); > depending on a value i get from a db query... > > -Eric > > - Original Message - > From: "David Robley" <[EMAIL PROTECTED]> > To: <>

Re: [PHP] Re: Checking to see what value error_reporting is set at?

2002-03-09 Thread eric.coleman
I ment, if you re-set it, as im setting it to error_reporting(E_ALL); depending on a value i get from a db query... -Eric - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: <> Sent: Saturday, March 09, 2002 6:52 PM Subject: [PHP] Re: Checking to see what value error_report

Re: [PHP] Re: Checking if session has been started

2001-09-22 Thread Alexander Skwar
So sprach »Fredrik Arild Takle« am 2001-09-22 um 18:00:37 +0200 : > session_register("valid_session"); > > OR SOMETHING LIKE THIS? > > if (session_is_registered($valid_session)) { Yep, that seems better. Thanks to both of you! Alexander Skwar -- How to quote: http://learn.to/quote (germ