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
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
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
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
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
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
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
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
"==" (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
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: <>
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
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
12 matches
Mail list logo