PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old August 5th, 2002, 05:51 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > will that be possible?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway