ok i have the 2 following pieces of codes, what im trying to do is when the user inputs there name and submits their info it saves is in a file just called there name, and then that way the next time they come on to input more info they can view there old info. now i know the ultimate way to go about this is to use a database, but some of us just dont have it so im try to do it like this, is it even possible???
here is the part from the first page..
--enterdata.php--
Enter Name: <input type=text name=name>
then on the next page you have this code...
--processdata.php--
<?
echo "
Vocab Comprehension
<br>
$v1
<br>
$v2
<br>
<br>
Reading Comp.
<br>
$q1
<br>
$q2
<br>
<br>
<br>
$name you made a $avg% on your quiz. Click Here to see your past score<a
href=index.php?page=scores.php>Here</a>
";
$data = "$name";
$newfile = @fopen($data, "a+") or die("Couldn't open file");
$newstring = "$name $avg%<br>";
@fwrite($newfile, $newstring) or die("Couldn't write file");
fclose($newfile);
?>
as you can see it takes the info and the name and saves the file as the users name or writes into an existing one
and im not sure how i would call it but i just tried this
--showdata.php--
<?
require('$name');
?>
now im pretty sure this last part works all right i just need to figure out how to get the users info pulled up when they enter there name after they have gone through the first 2 pages, and link to it. help is greatly appreciated
-Bomber