Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2004, 06:53 AM
Registered User
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to wokoci Send a message via Yahoo to wokoci
Default Displaying Multiple forms on same php page

 Hi, I hope i am in the right place. I need help as soon as possible of dynamically displaying html form elements from anothe form all in same php page

I want to be able to select an option from a select list and have it pass the value of the variable to another select list and have the second select list displayed with the first one still displayed.

I want to be able to display a third select list from the last displayed select list.

this is the code that i have tried, which works, but the second select list disappears when i make a selection.

<?php
$result = $_REQUEST['sel']; ?>

<form name="mfrm" method="POST" target="_self" action="try.php">
<select name="sel" size="2" onChange="submit()">
<option name="">select</option>
<option name="1">Population
<option name="2">Correlation
</select>
</form>



<?php if ($result == 'Population') { ?>

<form name="nfrm" method="GET">
<select name="selx" onChange="submit()">
<option name="">select</option>
<option name="3">3Population</option>
<option name="4">4Correlation</option>
</select>
</form>

<?php } ?>


Thanks
wokoci






Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a picture on a php page kevo Beginning PHP 2 February 22nd, 2007 08:44 AM
Multiple Forms in one page Monti ASP.NET 2.0 Basics 0 October 4th, 2006 09:51 AM
Displaying data fields from sub forms aRtware Access 5 May 8th, 2006 02:40 PM
PHP & Forms: stopping spam and multiple posts stephen_c_ Beginning PHP 1 July 28th, 2005 02:36 PM
Displaying Multiple Results webasp1 Classic ASP Databases 2 July 24th, 2003 12:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.