Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

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 Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 2nd, 2001, 11:31 PM
death death is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 1 death User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile A bit of help pls

//<?php
//session_start();
//session_register("username2");

//$username2 = "$username";
//$password2 = "$userpass";

//$file = "fileblah";
//$userPattern = "(\[)($username2)(\])";
//$passwordPattern = "(PASSWORD=)($password2)";


//Fetch file into an array
//if(!($text = @file( $file, "r" ))) {
//echo "ERROR OPENING FILE";
//} //End if
//else {
//for ($i = 0; $i < count($text); $i++) {
//(ereg($userPattern, $text[$i], $match)) {
//for ($j = 0; $j < 16; $j++) {
//if (ereg($passwordPattern, $text[$i + $j], $match)) {
//echo "<META HTTP-EQUIV=\"refresh\" content=\"1;
//URL=url\">";
//} //End if
//} //End for
//} //End if
//} //End for
//} //End Else
?>

Ok ive gotten that far with alot of help, now im trying to make it so if they enter the wrong stuff, it will say wrong blah blah, remove the session and send them back to another page. I commented out every line because im not sure how this forum would handle the php.

Anybody know how to do it? im guessing a elseif statement but not sure elseif what and where to put

Reply With Quote
  #2  
Old December 3rd, 2001, 02:12 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Start here -> http://forums.devshed.com/showthrea...24097&forumid=5

Then repost your message to PHP forum with a descriptive subject and delete this thread.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > A bit of help pls


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 1 hosted by Hostway