Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to pass a combo box value to next page?

    hi all,
    i've a combo box filled with values. i need to pass the value of the selected value to the next page.how do i do it.plz help.

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP Code:
    <form name="blah" method="post" action="form_process.php">
       ...
       <
    select NAME="combo">
          <
    option VALUE="value1">Value 1
          
    <option VALUE="value2">Value 2
       
    </select>
       ...
    </
    form
    In form_process.php:
    PHP Code:
    $combo $_POST['combo']; // $combo will equal either "value1" or "value2" 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •