note 41250 rejected from function.list by betz

From: Date: Sun, 04 Apr 2004 10:41:58 +0000
Subject: note 41250 rejected from function.list by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67613@lists.php.net to get a copy of this message
Note Submitter: Nixu89 ---- Is it possible to read from file and use list() for each line? I've tried code like this: $open = "db.dat"; $lines = file("$open"); $i = count("$lines"); list($data1,$data2,$data3) = explode("&",$lines[$i]); $login = array($data1 => $data2); if ($_POST) { $tunnus = $_POST['user']; echo "$login[$data1]"; } else { echo "<form action="$PHP_SELF" method="post"> <input type="text" name="user"> <input type="submit" value="OK"> </form>"; }

« previous php.notes (#67613) next »