PHP and JavaScript
| From: | skitum | Date: | Mon, 23 Sep 2002 17:23:02 +0000 |
| Subject: | PHP and JavaScript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117303@lists.php.net to get a copy of this message | ||
Hi all,
The following code will drive me mad coz it always shows the JavaScript functions and I'd like
know why:
<?
if(isset($validar))
{
$clinom=strlen($clinombre);
$clinif=strlen($clinifcif);
$clidir=strlen($clidireccion);
$cliloc=strlen($clilocalidad);
$clipro=strlen($cliprovincia);
$clipai=strlen($clipais);
$clicod=strlen($clicodpostal);
$clicon=strlen($clicontacto);
$clitel=strlen($clitelefono);
$cliema=strlen($cliemail);
$clicc1=strlen($ccc1);
$clicc2=strlen($ccc2);
$clicc3=strlen($ccc3);
$clicc4=strlen($ccc4);
if(($clinom < 5) || ($clinif < 8) || ($clidir < 5) || ($cliloc < 3) || ($clipro
< 5) || ($clipai < 5) || ($clicod < 5) || ($clicon < 5) || ($clitel < 9) || ($cliema
< 5) || ($clicc1 < 4) || ($clicc2 < 4) || ($clicc3 < 3) || ($clicc4 < 10))
{
?><script type="text/javascript">
error_alert();
goHistoryBack();
</script><?
}
else
{
ok();
}
}
?>
Thanks in advance
Peace & Love
skitum