Include and Values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manesal
    New Member
    • Nov 2006
    • 2

    Include and Values

    Hi folks, this is my first time here,

    Is there a way to link an <?include.... > from a value inside a Dropdown menu?

    If it doesn´t sound clear: I want the user when selecting an option in the menu, to open an especific <?include...>

    is that possible??
  • aaronic
    New Member
    • Nov 2006
    • 11

    #2
    Originally posted by manesal
    Hi folks, this is my first time here,

    Is there a way to link an <?include.... > from a value inside a Dropdown menu?

    If it doesn´t sound clear: I want the user when selecting an option in the menu, to open an especific <?include...>

    is that possible??

    Sure... make the form auto submit when the select input it changed and then do a simple if statement on the top of the page to include a certain file based on their selection.

    Comment

    • iam_clint
      Recognized Expert Top Contributor
      • Jul 2006
      • 1207

      #3
      i've had problems doing includes from variables.

      Comment

      • lasc
        New Member
        • Nov 2006
        • 2

        #4
        sample like this

        [PHP]
        $a=(int)$_REQUE ST['section_no'];
        include 'aa'.$a.'_sec.p hp';
        [/PHP]
        not work?

        Comment

        • manesal
          New Member
          • Nov 2006
          • 2

          #5
          wow thanks for your support..... but i guess i didn´t understand that...what do I put in the value for each option?

          i want to "call" a different include from each option in the selection menu.....

          in this case do I have to write this request script for each option??

          is it possible to put an anchor < # name > in the values to call some specific part of the page?

          please answer me,

          thanks

          Comment

          Working...