PHP: Parsing of a given form input variable

Posted by Jaime Cross on Stack Overflow See other posts from Stack Overflow or by Jaime Cross
Published on 2011-01-16T18:35:26Z Indexed on 2011/01/16 18:53 UTC
Read the original article Hit count: 160

Filed under:

How would I go about parsing incoming form data where the name changes based on section of site like:

<input type="radio" name="Motorola section" value="Ask a question">

where 'Motorola section may be that, or Verizon section, or Blackberry section, etc.

I do not have any control over changing the existing forms unfortunately, so must find a way to work with what is there.

Basically, I need to be able to grab both the name="" data as well as its coresponding value="" data to be able to populate the email that gets sent properly.

© Stack Overflow or respective owner

Related posts about php