Maybee my believe in php is a little too big..
When submitting a small string multiple times
with this form, I'd expect $file to build up.
Why does $file contain only the last submit?
<html>
<head>
<title>Silly idea?</title>
</head>
<?
$file .= $_POST['field'];
echo "
<form action=\"$_SERV ER[PHP_SELF]\" method=\"post\" >
<input type=\"text\" name=\"field\">
<input type=\"submit\" value=\"Submit\ ">
";
echo $file;
?>
</body>
</html>
When submitting a small string multiple times
with this form, I'd expect $file to build up.
Why does $file contain only the last submit?
<html>
<head>
<title>Silly idea?</title>
</head>
<?
$file .= $_POST['field'];
echo "
<form action=\"$_SERV ER[PHP_SELF]\" method=\"post\" >
<input type=\"text\" name=\"field\">
<input type=\"submit\" value=\"Submit\ ">
";
echo $file;
?>
</body>
</html>
Comment