im new at this. here is my problem. i have 3 files, one that gets the info, processes the info, gets and displays the info. im having problem w. the third one. the one that processes the info creates a file w. the information that was submitted like this name|email. now what i want to do is be able the get these things seperatly. i use fread in the third page it gives me the whole thing. how do i get it to only display name and only to display email. and what if i wanted to add a third category like name|email|age? this is what i have now....
second page
<?
$filename = "/web/sites/51/blackfly/www.blackfly.f2s.com/php/test.txt";
$content = "$name|$email\n";
$whattoread = fopen($filename, "a") or die("Could not open file");
@fwrite($whattoread, $content) or die("Could not write to file");
?>
<body>
<P>success</P>
</body>
third page
<body>
<?
$filename = "/web/sites/51/blackfly/www.blackfly.f2s.com/php/test.txt";
$fp=fopen("$filename","r");
$content=fread($fp,filesize("$filename"));
fclose($fp);
echo "$content";
?>
</body>