Arc Forum
new
|
comments
|
leaders
|
submit
login
1 point
by
abey
6116 days ago |
link
|
parent
<?php // unvarying HTML elided above if ($foo = $_POST['foo']) { $_SESSION['foo'] = $foo; print '<a href="">click here</a>'; } else if ($foo = $_SESSION['foo']) { print 'you said: ' . $foo; } else { print "<form method='post'><input type='text' name='foo'><input type='submit'></form>"; } ?>