Page 3 of 3

Posted: Tue Feb 28, 2006 11:57 pm
by Dark_AngeL
feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


ITS SOLVED

Code: Select all

<?php  
error_reporting('E_ALL');   

   $denied = ""; 
   $name = $_POST['name']; 
   $pass = $_POST['pass']; 
   if ($name == "Heba" &&  $pass == "123") 
   { 
       header("Location: main.php'');/* Redirect browser */ 
       exit;                 
   } 
   else { 
       $denied = "Sorry. You are not authorized to access this page<br>Go <a href='index.php' onclick='history.go(-1);return false'> Back </a>"; 
   } 
} 
?> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<title>SYS</title> 
. 
. 
. 
. 
... 
. 
. 
. 
. 
. 
. 
<body> 
<?php 
if(!empty($denied)) 
{ 
echo $denied; 
} 
?> 
. 
. 


... 



. 
. 
. 
. 
. 
. 
. 
</body> 
</html>

Thank You all :D am so grateful


feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Sat Mar 11, 2006 3:12 am
by Dark_AngeL
:roll: Hi again ..

Now since this worked pretty well
I was wondering if someone would help me in connecting to the database

Posted: Sat Mar 11, 2006 3:57 am
by NightFox
What type of database? MySQL? Plain text? Postquarge (or something like that lol)? Access? (can PHP handle Access?)

Off topic: a "Quick Reply" form at the bottom of the threads would be nice.

Posted: Sat Mar 11, 2006 5:54 am
by Dark_AngeL
no am using MS SQL Server

Posted: Sat Mar 11, 2006 6:58 am
by jayshields
You need to start reading the PHP manual more. I've read about 4 questions from you in the last 5 minutes all of which are somewhere on php.net.

Regarding Access database connections, view this page of the manual for MSSQL database functions.
Off topic: a "Quick Reply" form at the bottom of the threads would be nice.
You are referring to a feature included in the Invision Power Board (correct me if it's something else...), if you really think something like this is necessary, post it in the Suggestions board. :)

Posted: Sat Mar 11, 2006 10:29 am
by NightFox
jayshields wrote:
Off topic: a "Quick Reply" form at the bottom of the threads would be nice.
You are referring to a feature included in the Invision Power Board (correct me if it's something else...), if you really think something like this is necessary, post it in the Suggestions board. :)
Actually it's included as a standard in most CMS's (like PHP-Fusion.co.uk ;)) I'll start a thread in that board when I get back ;)

Posted: Sat Mar 11, 2006 11:38 pm
by Dark_AngeL
Thank you ill read that