Re: questions regarding PHP and Forms

From: Date: Fri, 27 Jan 2006 19:31:46 +0000
Subject: Re: questions regarding PHP and Forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229376@lists.php.net to get a copy of this message
> 1) I need to do vaildation on form values that I have entered into a > form. Is there a way I can write the vaildation code on the same page > as the form in php? Yes there sure is. :) if (isset($submit)) { // data validation etc. } else { // display html form } > 2) I have a drop down menu on one of my form fields. What I want to > do is if a certain item is seelected I want to have a new textbox > appear below the drop down menu. Is there a way to do this in php? You'll have to do this via JavaScript. =/ Hope that helps!

« previous php.general (#229376) next »