Re: forms question

From: Date: Tue, 25 Jun 2002 18:52:06 +0000
Subject: Re: forms question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103817@lists.php.net to get a copy of this message
If you want to do it from PHP, then the forms will have to be seperate (PHP is server side...) You assign a value to a checkbox, then in the page you submit to, use something like if ( $_POST[$checkbox_name] == "checked_value" ) { ... } On Tuesday 25 June 2002 10:30 am, M.E. Suliman wrote: > Hi > > I'm busy with an order form in php. How would I display a text field only > if a checkbox is checked. The reason for this is that if the user selects > the product in the form and, how would I get to display the quantity field > corresponding to that checkbox > > Any help would be appreciated. > > Thanks > > Mohamed -- To Believe without evidence and demonstration is an act of ignorance and folly. Volney

« previous php.general (#103817) next »