drop down box --> php ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tasneemm
    New Member
    • Mar 2007
    • 3

    #1

    drop down box --> php ??

    good afternoon every body

    thanks for readingthis discussion..
    I have an HTML page that contains a drop down box ( registration form), I need to know how can I post different choices in this drop down box in php variables... can you helop me ???


    Thanks alot
    Tasneem
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by tasneemm
    good afternoon every body

    thanks for readingthis discussion..
    I have an HTML page that contains a drop down box ( registration form), I need to know how can I post different choices in this drop down box in php variables... can you helop me ???


    Thanks alot
    Tasneem
    Enclose it in a form. If you are posting you will get the result in the $_POST array, if you are getting you will get it in the $_GET array. Do a print_r() on those two arrays to see how the data comes over.

    Comment

    • tasneemm
      New Member
      • Mar 2007
      • 3

      #3
      Originally posted by Motoma
      Enclose it in a form. If you are posting you will get the result in the $_POST array, if you are getting you will get it in the $_GET array. Do a print_r() on those two arrays to see how the data comes over.

      thanks for replying, but does that mean to use the "name" of each choice in the $_POST array?

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by tasneemm
        thanks for replying, but does that mean to use the "name" of each choice in the $_POST array?
        If you look at the print_r() result on the POST/GET array, you will see that the key for each element is the name you gave the input in the sumitting form.

        Comment

        Working...