exit;
}
thanks
simba
-Original Message-
From: Miles Thompson [mailto:[EMAIL PROTECTED]]
Sent: 22 October 2001 14:36
To: [EMAIL PROTECTED]
Subject: Re: [PHP] validating form data...
Divide and conquer
Have you tried it one function at a time -- e.g.
if (email_is_valid($Email)
Divide and conquer
Have you tried it one function at a time -- e.g.
if (email_is_valid($Email)
{
do stuff ...
also,
what values do these tests return?
have you echoed the values?
HTH - Miles
At 02:07 PM 10/22/01 +0200, Toke Herkild wrote:
>I've made a script which ought to val
&& and "and" are same except that they stay at different levels in the
precedence table. But if the programmer is skilled he will never write code
which depends on the precedence table but put brackets here and there,
everywhere they are needed.
--
Andrey Hristov
Web Developer
Icygen Corporat
Nope, wasn't that...
And it should not do any difference using 'and', 'AND' or '&&' as they do
the same thing...
Nicolas Costes :
> hellorghh !!!
>
> I think that :
>
> if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){
>do stuff ...
> }
>
> ...should be better . (&&, not "
hellorghh !!!
I think that :
if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){
do stuff ...
}
...should be better . (&&, not "and")
"Toke Herkild" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> I've made a script which ought to validate if there is
I've made a script which ought to validate if there is data in the fields or
not... but it doesn't seem to work...
the validation is following:
if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){
do stuff ...
}
But even if I submit an empty form it executes "do stuf..."
I hav
I don't think you can name variables as varname[name] and access them like
that in javascript unless
varname[name] is initialize where varname is an array and name=index in that
array and it must be defined first.
I believe you will have to change the naming convention from var[keyname] to
var_ke
Morten Winkler Jørgensen wrote:
>
>You will have to declare
>
>
> myArray = new Array();
>
> myArray[0] = "a string";
> myArray[1] = 11;
> myArray[2] = new Array();
>
>
>since JavaScript 1.2 has arrays implemented.
>
Thanks for that, but my problem be
Joseph,
You will have to declare
myArray = new Array();
myArray[0] = "a string";
myArray[1] = 11;
myArray[2] = new Array();
since JavaScript 1.2 has arrays implemented.
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net
G'day,
I was wondering if anyone knows how to get the following to work:
--snip from head--
//-->
function validateForm(theForm) {
if ( theForm.input[name].value == "" ) {
alert("You must type a value for NAME.");
theForm.input[name].focus();
return false;
}
}