Enter Your Name: ' ; } else if($_GET["action"] == "Add Name") { $_SESSION['user'] = $_GET['username']; echo '

Welcome '.$_GET['username'].'

'; } else if($_GET["action"] == "Add Color") { $_SESSION['color'] = $_GET['color']; echo '

Welcome '.$_SESSION['user'].'

'; } else if($_GET["action"] == "Font Size") { $_SESSION['fsize'] = $_GET['fsize']; echo '

Welcome '.$_SESSION['user'].'

'; $datastring = $_SESSION['user'].",".$_SESSION['color'].",".$_SESSION['fsize']."\n"; $filename = "welcomedata.txt"; $myfile = fopen($filename, "a"); fwrite($myfile, $datastring); fclose($myfile); } ?>