05-16-2017, 04:00 PM
Thx JUG for your code, here is an ideea
I use switch to handle form action like this:
- in register form
- in login form
and then in php code
<pre></pre>
I use switch to handle form action like this:
- in register form
Code:
<input type="hidden" name="action" value="register" />
Code:
<input type="hdden" name="action" value="login" />
<pre>
Code:
$action = $_POST['action'];
switch ($action) {
case 'login' :
// Login code
break;
case 'register' :
// Register code
break;
}