|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
//<?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 ![]() |
|
#2
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > A bit of help pls |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|