> I have an update page that has a form in it. > > However, I want to add another form in the same page. My current form > acts > upon itself (i.e. Action = the same page). If I set up another form to do > the same, how would my PHP determine with action submit button was acted > upon? > > Currently, for the single form here is how it knows a form was submitted: > > if ((isset($HTTP_POST_VARS["MM_update"])) && ($HTTP_POST_VARS["MM_update"] > == "form1")) { > > How would I test which form submitted the action? > > Thanks and if I didn't make myself clear, I apologize.
Just name each submit button something different. The program could check for $_POST['MM_update'] to process the first form, or $_POST['MM_update2'] to update the second. <input type="submit" name="MM_update" value="Submit"> <input type="submit" name="MM_update2" value="Submit"> ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php