Forum Moderators: open
I have a html form and i want to submit the data to a php script that will run in a popup window. In need to carry the data and have tried:
<script type="text/javascript" language="JavaScript">
<!--
function DoThis12() {
window.open("index_quote_result.php?<?php echo $post php?>&<?php echo $code php?>&<?php echo $unit_size php?>","","height=400,width=500,scrollbars=yes,resizable=yes,statusbar=yes,menubar=yes,toolbar=yes,dependent=yes")
}
--></script>
<form method="POST" action="Javascript:DoThis12()" >
It won't carry the data. what's wrong?
Thanks for any help...
try this way
<script type="text/javascript" language="JavaScript">
<!--
function DoThis12() {
var myW = window.open("","myW","height=400,width=500,scrollbars=yes,resizable=yes,statusbar=yes,menubar=yes,toolbar=yes,dependent=yes")
}
-->
</script>
And in your form tag
<form method="POST" action="index_quote_result.php?<?php echo $post php?>&<?php echo $code php?>&<?php echo $unit_size php?>" onsubmit="DoThis12()" target="myW" >