Arc Forum
new
|
comments
|
leaders
|
submit
|
abey's comments
login
1 point
by
abey
6115 days ago |
link
|
parent
| on:
How would this Arc program be translated into othe...
<?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>"; } ?>
-----
1 point
by
abey
6115 days ago |
link
|
parent
| on:
How would this Arc program be translated into othe...
<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)
-----