I am writing a page that takes a user's data from a database and displays it in a web page. Then the user is given the option to update or delete portions of the information. I am having an issue on the PHP side, after the user has submitted the form. Here is an example of the form being submitted by the user.
<form action="submit.php" method="post">
<input name="item4" type="text" />
<input name="item75" type="text" />
Okay. The important thing to note here is that the name for each text box is dynamically generated via php. So it will never be the same. It will always start out as "item", but the number is the ID number of the item stored in the database. Also, the number of input items may be different. Sometimes there may be 5 textboxes, other times there could be 20.
I am wondering if there is a way to a list of names that were posted without using a hidden field. Maybe something like $_Post.name(), where the zero is the first item in the post array, and the function name() would give me the name of the posted input.
I don't know, as long as I don't have to write an entire novel's worth of code to get it to work would be good. I am also new to php, so keep that in mind.