halm1985 Posted June 2, 2007 Share Posted June 2, 2007 How should the Action part of the form tag look like if i want to peform two or more actions upon Submit click say : 1) change a certain value in the database 2) go to mainpage Link to comment https://forums.phpfreaks.com/topic/54009-multiple-actions-for-forms/ Share on other sites More sharing options...
chocopi Posted June 2, 2007 Share Posted June 2, 2007 if($_POST){ // update table // redirect } Link to comment https://forums.phpfreaks.com/topic/54009-multiple-actions-for-forms/#findComment-266997 Share on other sites More sharing options...
halm1985 Posted June 2, 2007 Author Share Posted June 2, 2007 I think you didn't get me this is the header of the <form id="form2" name="form2" method="post" action="[color=red]<?php echo $logout ?>[/color] "> In addition to the php part, i want to add another action ( loading mainpage.php ) Link to comment https://forums.phpfreaks.com/topic/54009-multiple-actions-for-forms/#findComment-267005 Share on other sites More sharing options...
taith Posted June 2, 2007 Share Posted June 2, 2007 nono... you action="" to one php page, on that page, do you query/updates/unsets/ect, then redirect to the homepage... Link to comment https://forums.phpfreaks.com/topic/54009-multiple-actions-for-forms/#findComment-267006 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.