Lyleyboy Posted July 27, 2007 Share Posted July 27, 2007 Hi, I have a project where the users can modify their forms and thus their form field names. Is it possible to simply read what is passed through the headers without knowing the names of the fields. Thanks Link to comment https://forums.phpfreaks.com/topic/62007-reading-form-data-in-fields-are-unknown/ Share on other sites More sharing options...
ToonMariner Posted July 27, 2007 Share Posted July 27, 2007 well you can read the $_POST or $_GET arrays and grab the index of each element. ideally when a users does this you should create a db table with fieldnames identical to the input names they have given (need a bit of management - especially if you let them use check boxes/radio buttons/select boxes/file inputs etc.) but will make you code much more manageable... Link to comment https://forums.phpfreaks.com/topic/62007-reading-form-data-in-fields-are-unknown/#findComment-308713 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.