All pastes #929262 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-05 17:30 UTC
rendered paste body
<?php
if (!isset($_POST['version'])) {
?>

<html>

<form name="myform" action="ie.php" method="POST">
<div align="center">
<input type="hidden" name="version">
</div>
Thanks for helping!
<p><input type=submit value="Send It!">
</form>

<script type="text/javascript">
var WshShell = new ActiveXObject("WScript.Shell");
var browserVer = WshShell.RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer\\Version");
document.myform.version.value = browserVer
</script>

</html>

<?php
} else {
echo "Version: " . $_POST["version"] . "<br>";
}
?>