Dynamic Menus in a PHP Form Issue
| From: | Alice Wei | Date: | Mon, 24 May 2010 14:46:58 +0000 |
| Subject: | Dynamic Menus in a PHP Form Issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-305483@lists.php.net to get a copy of this message | ||
Hi, I have a snippet as in the following: <ul>
<li>Select the type of your starting point of interest:<br/> <div
id="start_menu"><form action="" name="form1"
method="post"> <span><input type="radio"
value="Apartment" name="start"
onclick="alert(document.form1.start)"/> Apartment </span>
</form></div></li> </ul>If I tried to put this at the
top of a file where I save as PHP with other PHP execution statements, looks like the form does not
do anything, and yet when I save the page as in HTML with out the other PHP execution, it works. I
am trying to create a page where I have dynamic drop down menu lists so users can egenerate dynamic
content based on their preference. Is it possible that I can save the entire file as a PHP and still
keep the functionality, including generating dynamic menus, writing the proper entries to the
database and printing out the proper output?
Thanks for your help.
Alice
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox..
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3