Re: oohform validation help

From: Date: Fri, 09 Mar 2001 15:12:46 +0000
Subject: Re: oohform validation help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43175@lists.php.net to get a copy of this message
using client side form verification is a bad idea anyhow, just write a simple php verify. <?php if (isset($HTTP_POST_VARS['done'])) { $people_name = @$HTTP_POST_VARS['people_name']; if ( !$HTTP_POST_VARS['people_name'] ) $form_error[] = "Name must be set"; } if(isset($form_error)) { echo " <font color='red'> "; foreach ($form_error as $pos => $val) echo " $val <br> "; echo " </font> "; } echo " <form method='post' action='$PHP_SELF'> <input type='text' name='people_name' value'". @$people_name ."> <input type='submit' name='done' value='Submit'> </form> "; ?> simple stuff, server side is fool proof, client side is foolable. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 lee@mediawaveonline.com ""Christopher Cheng"" <christopher@netdimensions.com> wrote in message news:989jvm$9r0$1@toye.p.sourceforge.net... What should I put in for the parameter jvs_name of the oohform->start? Is that a name of another javascript file? Where can I get a sample script? I would like to make sure the clients put in something in the textbox. -- 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 (#43175) next »