Posted by shockwavedude on 12/18/05 20:02
<body><form action="welcome2.php" method="post">
Enter your name:
<input name="name" type="text"/>
Enter your age:
<input name="age" type="text" />
<input name="submit" type="submit" />
</form>
<?php
$a = $_POST["name"];
$b = $_POST["age"];
$entry_line = " Name: $a, AGE: $b";
$fp = fopen("test.txt", "a");
fputs($fp,$entry_line);
fclose($fp);
?>
</body>
</html>
[Back to original message]
|