Re: forms checking

From: Date: Wed, 19 Jul 2000 16:30:51 +0000
Subject: Re: forms checking
Groups: php.general 
Request: Send a blank email to php-general+get-7304@lists.php.net to get a copy of this message
Hi Maria PHP code is "triggered" and processed _before_ a page is sent to the client (server-side scripting). So there's no way executing php code once the page is already loaded in the browser. You have no choice using javascript (in any flavour) to do your checking (client-side scripting). Perhaps there are tools out there that will help you coding it (e.g. as Chris Boget worte: Jay Bloodworth's FormClass). HTH -Steff hi, is there a way with PHP to check fields in a form to make sure they aren't blank before submitting the form? Can you call a function to execute when a form is submitted like you can with JavaScript? Or are there event handlers like OnClick or OnBlur? Or even, can you use JavaScript functions with PHP? Thanks, Maria Maria B. Erb Web Developer Keene State College 603-358-2340 mail address: MS 2707 / CMIT 229 Main Street Keene, NH 03435 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#7304) next »