bdwise wrote:
Is it possible to rewrite the URI shown in the browser "Address" bar
using JavaScript?
No, the addressbar can not display anything other then the URI of the page
loaded into the window.
That way, during a <form> POST, the "Address" information could be
captured too.
I don't see the connection.
You could do something like:
window.onload = function() {
document.getElementById('someinput').value = document.location.href;
}
but you would be safer with something like:
<input type="hidden" name="someinput" value="<?php print
$_SERVER['PHP_SELF']; ">
Of course, users could still change the value they submit. You could also
look at the http referer header, but that is also easy to fake.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>