Menu

Dynamic type drop down menus

Help
Rob
2007-12-13
2013-06-03
  • Rob

    Rob - 2007-12-13

    First let me say this program is awesome. It has saved me hours and hours.

    I dont think this program offers the feature I am looking for, but thats ok, because it will atleast get me started.

    What I am looking to be able to do is offer  a series of drop down menus.  However, subsiquent menus are based on what was selected in the previous drop down menu.

    For example.

    Drop down menu 1 offers 2 options  Trucks or Cars
    Based on what choice was selected in menu1, the appropriate drop down menu2 will be displayed.
    menu2 will either be a list of truck types, or a list of car types.

    Any help is greatly appreciated. Thank you!

     
    • TNTEverett

      TNTEverett - 2007-12-13

      Of course anything is possible but you have to realize that adding functionality to accomodate every request is impossible.  You have the basic form as generated by this program and you are free to use it, modify it, and copy it as much as you want.  The feature you are requesting will require that you regenerate the form.html code each time a selection is made that changes a sub-option.  For this reason it would be better to have the form.html file be either php or some other web scripting language.  The form.htl file type does not allow the kind of recoding (modify as selections are made) you are asking for. 
      Again this is certainly possible but it is outside the scope of the phpFormGenerator program. 

       
      • Rob

        Rob - 2007-12-13

        Thank you for the quick reply.  So these types of dynamic forms are generally php type files that are created on the fly based.  I was not aware of that.  It makes sense though, I jst was not aware that, thats how those types of forms are generated.

        Thank you. Now that I have the base form created, I will do some further research to see about modifying the form.html file or converting to a php file so that I can work on generating a dynamic form.  Any suggestions or websites that might help me to code something like this?

        Thank you again.

         
        • TNTEverett

          TNTEverett - 2007-12-13

          There quite a few PHP scripting sites available.  I use the php.net site most often but on more difficult tasks I usually reference more than one site for information and examples. 
          The simplest method would be to refresh a php file with option parameters.  You display a page without options like this;
          http://myphppage.pgp
          and then as you make additional selections you refresh the page like this;
          http://myphppage.pgp?option1=newpulldown
          Take a look at this sites URL for example:
          https://sourceforge.net/forum/message.php?msg_id=4674010
          Note the "?msg_id=4674010" option for specifically displaying this thread.  Click on a different post on this thread and you will note the page refresh with different options and displayed text.  You will see the same base "https://sourceforge.net/forum/message.php" with many different "msg_id=" parameters passed to do many different things. 
          Of course most often you see this method used with long alphanumeric coding to obscure the intentions but the concept is the same. 

           
  • A Sinani

    A Sinani - 2009-10-06

    Iam having the same problem here, did you get any help?

     
  • A Sinani

    A Sinani - 2009-10-06

    Can you giva us some example?

     
  • TNTEverett

    TNTEverett - 2009-10-07

    My chosen method is different (more complex for larger sets of options) but this one is a very simple example.

    http://www.weberdev.com/get_example-4398.html

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.