I am working on a query tool that displays data from a MySQL database. The user is presented with a form containing several tens of dynamically generated flags so that they can choose how to view the data. This data is transmitted as a GET request and is displayed (explicitly) in the URL when the requested page loads.
On the same page as the input form, I have a php array that I generate dynamically, and it needs to be sent to the same place as the GET request. However, I do not want the values in this array to display in the URL (I use them internally), so I would like to send them as a POST request.
Obviously, I cannot simultaneously execute a GET and POST request. I am new to web development (a guy in computer science, otherwise) and have been scratching my head about how to approach this.
Let me know if the problem is not clear.
EDIT: Many suggested adding them to the a la action variable:
form action = "process.php? get1 = value ...
All these inputs are generated dynamically, so they cannot be inserted into the action variable.
source
share