|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
will that be possible?
Hello,
when i use the following simple code to check for user log-in it is working fine: <?php $myuser = "admin"; $mypass = "password"; if ($user == $myuser && $pass == $mypass) { header ('location: main.php'); } else { echo"<form action="$PHP_SELF" method="POST">n"; } ?> ----------->HTML CODE<----------------------- --------------------------------------------- Now, the following code i'm using for getting language phrases from my db for multi-language concept.Itz also working pretty fine! <?php include "dbconnection.inc"; include "main_functions.inc"; $p_main = new main_functions; if ($language_f != "") $p_main->set_system_language($language_f); $p_main->get_language_phrases('LOGIN'); ?> followed by the log-in screen code. NOW, My question is I combined the above two parts of code,and try to log-in but it does'nt control to "main.php ". Both the parts of code are working when i use them seperately but it does'nt working well if i combine them.I think, the PHP interpreter is'nt checking for $myuser and $mypass. could somebody pls arrange my code in an orderly way, like, which lines should come first and which next Many thanks |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > will that be possible? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|