Re: PHP inside Javascript

From: Date: Tue, 05 Sep 2000 02:37:50 +0000
Subject: Re: PHP inside Javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15208@lists.php.net to get a copy of this message
On Tue, 5 Sep 2000, Samantha Savvakis wrote: > No matter what I do, the php is being executed and $error always has a > value. Is there a way I can do PHP validation inside the javascript function > and it not be executed? No, that would mean that the PHP is aware of the JavaScript to begin with. Since JavaScript is parsed by the client (browser) and not the server, you can't have the two interact in this manner. Typically when form validation is done with PHP, it's done by the form action, which is run after the form is submitted. Matt

« previous php.general (#15208) next »