All pastes #156648 Raw Edit

Mine

public text v1 · immutable
#156648 ·published 2006-08-31 21:57 UTC
rendered paste body
the index.php has:

<html>
<body>

<form action="sig.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>

</body>
</html>

and the sig.php has:

<?php 

$handle = fopen('sig.txt', 'ra');
$name = $_POST["name"];
$age = $_POST["age"];
fwrite($handle, "$name age\n");
fclose ($handle);

?>