> 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
if(isset($_REQUEST['checkbox_name'])) { echo "<textarea>Data</textarea>"; } etc... Adapt to your needs. remember that PHP runs on the server, so what you want to happen won't work unless the form is submitted in between. i.e. check the checkbox, submit the form, now it shows/doesn't show a text area depending on the whether the checkbox was checked or not. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php