D
David Williams
Hello all, I need help submitting this
data to a form which works in Firefox
but not IE 7. I have an image (but.bmp)
that when clicked, submits the data to the
next php page. Works fine in Firefox. Does
not work in IE so I made a hidden input
field which changes value via the following
javascript:
onClick="document.myform.hiddenObject.value=this.value"
The this.value seems to be the problem because
it is not evaluating to 5
The this.value seems to be the problem
because it is not evaluating to 5 like it
should. Is this not the proper syntax? I did
a view source on the page and everything looks
good except the this.value. The browser takes that
literally ( this.value ) rather than evaluating
it to (5)
Here is the code:
Thanks for any help
<title>Test</title>
</head>
<body>
<?
$temp_id=5;
$name="temp_id1";
?>
</body>
<form name="myform" action="page2.php" method="post">
<INPUT TYPE="hidden" NAME="hiddenObject" VALUE="">
<input type="image"
src="but.bmp"
name="<?php echo $name; ?>"
</form>
</html>
data to a form which works in Firefox
but not IE 7. I have an image (but.bmp)
that when clicked, submits the data to the
next php page. Works fine in Firefox. Does
not work in IE so I made a hidden input
field which changes value via the following
javascript:
onClick="document.myform.hiddenObject.value=this.value"
The this.value seems to be the problem because
it is not evaluating to 5
The this.value seems to be the problem
because it is not evaluating to 5 like it
should. Is this not the proper syntax? I did
a view source on the page and everything looks
good except the this.value. The browser takes that
literally ( this.value ) rather than evaluating
it to (5)
Here is the code:
Thanks for any help
<title>Test</title>
</head>
<body>
<?
$temp_id=5;
$name="temp_id1";
?>
</body>
<form name="myform" action="page2.php" method="post">
<INPUT TYPE="hidden" NAME="hiddenObject" VALUE="">
<input type="image"
src="but.bmp"
name="<?php echo $name; ?>"
</form>
</html>