php help or guidence please

  • jamesbond
  • Novice
  • Novice
  • jamesbond
  • Posts: 22

Post 3+ Months Ago

Im trying to write a php pgm that populates a html drop down menu and then will echo the choice and then give a new drop down menu with new choices and so on. example pick year from 1st menu then submit and then pick the make and then echo the year and make and then produce a drop down menu with models and then echo my year, make and model. Im trying to find a way using arrays and some functions to populate the drop down so i don't have to make allot of drop down menus or make at least make the previous drop down menu disappear. Any help will be appreciated


Code: [ Select ]
<html>
<body>
<select name="year">
    <option value="2001">2001</option>
    <option value="2002">2002</option>
    <option value="2003">2003</option>
</select>

</body>
<?php
$year = array('2000','2002','2003');
?>
</html>
  1. <html>
  2. <body>
  3. <select name="year">
  4.     <option value="2001">2001</option>
  5.     <option value="2002">2002</option>
  6.     <option value="2003">2003</option>
  7. </select>
  8. </body>
  9. <?php
  10. $year = array('2000','2002','2003');
  11. ?>
  12. </html>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • jamesbond
  • Novice
  • Novice
  • jamesbond
  • Posts: 22

Post 3+ Months Ago

the main question is how do i make the drop down menu dissapear once the user had made his choice and make it move on to the next menu ? I know i can use mutiple html pages but i want to try and keep the project on one php page

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 145 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.