Arc Forumnew | comments | leaders | submit | abey's commentslogin

<?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>"; } ?>

-----


<input id="in" type="text" /><input type="submit" onclick="window.result='You said: '+document.getElementById('in').value; document.body.innerHTML=''#\'" value="Submit"/>

(it's a big hack, I know)

-----