Jump to content

Fetching The Name Of A Form Field From $_post


chibineku

Recommended Posts

I would like to be able to detect the name of the form field that a script has been sent via the $_POST variable array. Only one value will be set at a time. So, I need to know $_POST["this_bit"], but I don't know how to reference that.edit: I will explain my idea, so I know if it'll work before I proceed:I want to create a form that displays a user's current personal data and lets them save it. I could have the form handler be one big script that can cope with any and all changes, but I thought it'd be easier to have a little button next to each field and if one is changed, only one form field is posted to the handler at a time, which could then return true or false to the form page. Would that work or do I need AJAX for that? It'd be fun to dust off my AJAX anyway...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...