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 Quote Link to comment Share on other sites More sharing options...
chocopi Posted June 2, 2007 Share Posted June 2, 2007 if($_POST){ // update table // redirect } Quote Link to comment 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 ) Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.