Re: oohform validation help

From: Date: Sat, 10 Mar 2001 03:49:04 +0000
Subject: Re: oohform validation help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43282@lists.php.net to get a copy of this message
On Fri, 9 Mar 2001 09:12:46 -0600, Chris Lee (lee@mediawaveonline.com) wrote: >using client side form verification is a bad idea anyhow, just write >a simple php verify. Imagine waiting 10 minutes for a 5 MB file to upload on a form just to get an error message that says 'please go back and fill out your zip code', suddenly client side validation doesn't seem like such a bad idea :) ><?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 > > > >-- >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 (#43282) next »