Arc Forumnew | comments | leaders | submitlogin
1 point by abey 6074 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>"; } ?>