The question emerges from the discussion with Christoph in my last question 'HTML: target=”_blank” for a drop-down list' and the alternative method by Andrew.
Problem: to run code server-side because some users lack Javascript support. The situation is a form like here.
Some suggestions:
Christoph's recommendation:
<form action="path-to-redirection-script" method="GET" target="_blank"
onsubmit="window.open(this.elements['foo'].value); return false;">
<select name="foo" size="1">
<option value="http://google.com">google</option>
</select>
<input type="submit" value="go">
</form>
<form onsubmit="this.js_enabled.value=1;return true;">
<input type="hidden" name="js_enabled" value="0">
<input type="submit" value="go">
</form>
Question: How would you do the server-side scripting in the case of form?