Can you guys adjust this code so that it creats a new file with the Username and Password saved in there?Code:<html>
<head>
<title></title>
</head>
<body><?php
echo"<align='center'>Registration Form</align>";
echo"<p><form name='registration'>Username:<input type='text' name='Username' maxlength='20'><p>";
echo"<p>Password:<input type='password' name='Password' maxlength='20'></p>";
echo"<p><form action='post'><input type='submit' input name='registration' value='Register'></form></p>";
$name = $_post['$Username'];
$pass = $_post['$Password'];
$myFile = "name.php";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData='$Username';
fwrite($fh, $stringData);
$stringData='$Password';
fwrite($fh, $stringData);
fclose($fh);
?>
</body>
</html>
I kno it's not a safe way to do it, but I'm learning PHP now... Wrote this script myself btw.