php - Can I have more actions in a form? -


as said in title need more 1 action in form... form log in script , it's this:

<form method="post" action="action.php" name="loginform" id="loginform">  <br><br>        username:<br> <input type="text" name="username" id="username" /><br><br>        password:<br><input type="password" name="password" id="password" /><br /><br>         <input type="submit" name="login" id="login" value="login"  class="page"/>          <br>         <br>         <a href="register.php" class="page">sign up</a>      </form> 

the action.php page this:

<?php   include('index.php');   include('insert.php');   include('contact.php');   include('about.php'); ?> 

it seems work way want after hit log in button redirects me action.php page includes pages above... need action.php page because if log in want logged in on pages, not 1 of them. can have redirect page or something?

you can redirect page action.php using header function

and adding line code

header("location:www.yourpage.com"); 

note: have used redirect because said don't know how use sessions.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -