post values from html form radio buttons

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tolkienarda
    Contributor
    • Dec 2006
    • 316

    post values from html form radio buttons

    hi all

    i am reciving several $_POST variables from a form on an html page and i was curious if in my
    if (isset($_POST['variablefromht ml']))
    statement is using the id or the name of the radio button.
    if the name value is used and i have 9 radio buttons int the same form how do i go about determining which value i am getting. cause the php script will redirect either delete entries from a mysql table or redirect me to a page.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Originally posted by tolkienarda
    hi all

    i am reciving several $_POST variables from a form on an html page and i was curious if in my
    if (isset($_POST['variablefromht ml']))
    statement is using the id or the name of the radio button.
    if the name value is used and i have 9 radio buttons int the same form how do i go about determining which value i am getting. cause the php script will redirect either delete entries from a mysql table or redirect me to a page.
    In the $_POST array you find the name of the HTML <input> statement as the entry's key and the value of that statement as the entry's value. So for buttons you'll get (of course) 1 name and the value of the particular button clicked.

    Ronald :cool:

    Comment

    Working...