At 11:27 AM +0000 1/29/01, kaab kaoutar wrote:
>Hi!
>What's best ? using client script while validating form 
>inputs(javasript or vbscript) or using php for validating!
>with the first way, i can trigger alert ! however with the second 
>one, i have to show up a whole page for just saying that there are 
>errors, go back to the form !
>any ideas ?
>thanks
>

Best way is to do it both ways:

JavaScript to make a more user-friendly page, and server-side 
validation in case  JavaScript is disabled AND to catch programs that 
simulate posts by writing directly to a socket. It's really easy to 
do that  - via telnet to port 80, for example, or via PHP (see the 
posttohost function at one of the code libraries - see px.sklar.com, 
or phpbuilder.com, or on of the other resources).

        - steve

-- 
+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to