The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
handle existing join+login page
#14
Thx JUG for your code, here is an ideeaSmile
I use switch to handle form action like this:
- in register form
Code:
<input type="hidden" name="action" value="register" />
- in login form
Code:
<input type="hdden" name="action" value="login" />
and then in php code
<pre>
Code:
$action = $_POST['action'];
    switch ($action) {
       case 'login' :
// Login code
break;
case 'register' :
// Register code
break;
}
</pre>
  Reply


Messages In This Thread
handle existing join+login page - by yuma - 01-04-2017, 05:46 PM
handle existing join+login page - by mudmin - 01-04-2017, 05:55 PM
handle existing join+login page - by meetmec12 - 01-08-2017, 08:47 AM
handle existing join+login page - by mudmin - 01-08-2017, 04:33 PM
handle existing join+login page - by meetmec12 - 01-10-2017, 11:25 AM
handle existing join+login page - by mudmin - 01-11-2017, 12:32 AM
handle existing join+login page - by JUG - 03-13-2017, 10:14 AM
handle existing join+login page - by mudmin - 03-13-2017, 02:14 PM
handle existing join+login page - by JUG - 03-14-2017, 12:14 PM
handle existing join+login page - by mudmin - 03-14-2017, 02:25 PM
handle existing join+login page - by JUG - 04-19-2017, 09:06 AM
handle existing join+login page - by mudmin - 04-20-2017, 10:34 AM
handle existing join+login page - by JUG - 04-21-2017, 06:48 AM
handle existing join+login page - by robertcoroianu - 05-16-2017, 04:00 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)