Jump to content

IF Command


TaiChiWaWa

Recommended Posts

I've created a login page in Dreamweaver and there is a redirect page for login success and login fail. What I want to have is a selection of screens based on a data field held in the user security table.

Each security record will have up to 5 different security codes e.g. code1, code2 etc. If a code e.g. TA40, appears in any of the 5 code fields then I want the user directed to one page, if code TA41 appears in any of the 5 code fields then I want them directed to another page.

The user code will only appear in one of the fields, but can appear in any of the 5 code fields.. How can I incorporate this in to the login screen logic, as currently it will just show the follwoing

 

if (isset($_POST['opno'])) {

  $loginUsername=$_POST['opno'];

  $password=$_POST['pass_word'];

  $MM_fldUserAuthorization = "";

  $MM_redirectLoginSuccess = "/menu.php";

  $MM_redirectLoginFailed = "/loginform.php";

  $MM_redirecttoReferrer = false;

  mysql_select_db($database_Hanson, $Hanson);

Link to comment
https://forums.phpfreaks.com/topic/217112-if-command/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.