If I have multiple HTML tags with separate submit forms, how do I know which when was posted in the PHP file that processes the form\'s data?
This works for me....
Each form has a unique 'name'...
form method="post" action="" name="uniqueName" id= "uniqueName"
Each form has this hidden field...
input type="hidden" id="action1_1" name="action1" value="1"
with unique id extension ( _1, _2, 3 ... and unique value (1,2,3,....) and common name: action1
then in the php index script :
$action1 = $_POST['action1'];
if ( $action1 == "1" ) { include("form_process1.php"; //...do whatever that form need dones... } else if ( $action1 == "whateverelse" ) { include("form_process.php"; // ...do whatever that form does... }