I need something very simple. I have different html pages (in total eleven) with forms that when submitted they will send via post the values of an input form. These pages are very different, with inputs tags with different names and functions ecc... The php must save data inside a pre-existed excel file so i pass to my php page also the cell where save the data. But because there are very different pages with different tag names, i want only to write a php file that use the $_POST array using numeric index instead of the name of the tag as key. That's possibile?
An example of part of a form of one of the all pages is this
Client name <input type="text" name="client_name"/> <input type="hidden" value="A8">
An esample of a second page could be
Address of you friend <input type="text" name="address"/> <input type="hidden" value="A1"> <br>
<br>
When one of these send via the submit button using method post, the content in $_POST[1] will be A8 if the php page is called from the first html page and will be A1 if the php page is called from the second html page?
if( isset($_POST['formfield']) ){ // do stuff here. }? Then you could still have one script that can handle multiple forms with different fields? - pj100