Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
PHP troubles
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Talk PC Add To Bookmarks
PHP troubles
PostPosted: 08/19/2007 1:26 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 10:59 AM
Location: SE England
greatbrE.gif
Hi NR.
I've coded this login script, but I can't get it to leave a cookie behind to keep it logged in, and then delete it when a logout button is clicked >.<

Code:
<?php
$input=$_POST["password"];
include("includes/config.php");

if($input==$password)
{
$page="includes/access.php";
}
else
{
if ($input=="")
{
$page="includes/form.php";
}
else
{
echo "Incorrect password. Try again.";
$page="includes/form.php";
}
}
?>

<html>
<head>
<title>

<?php
echo "$index";
?>

</title>
<link href="css/index.css" rel="stylesheet" type="text/css" />

<?php
include($page);
?>

</head>
<body>
</body>
</html>


That's index.php

I should probably give you more code from the other files, so just say if you need it =]

Thanks,
- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: PHP troubles
PostPosted: 08/21/2007 3:16 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:59 AM
Location: St Pete, FL
peace.gif
I don't see any code here for updating any cookies.  Is that code stored in the access.php file???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Talk PC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0647s (PHP: 62% - SQL: 38%) - SQL queries: 33 - GZIP disabled - Debug on