I have a form with only one selectbox, now when the user hits submit button, a popup opens up. But I need this popup to contain the value from the form
. I have written till here, but unable to pass the form values. Read online about this issue but still no help.
Any suggestion would be helpful.
<form action="" method="post">
<select name="sme">
<option value="sometinf">Someting</option>
<option value="p">p</option>
</select>
<input onclick="javascript:popUp();" type="submit" class="btn btn-lg btn-border" value="Upgrade">
</form>
<script type="text/javascript">
function popUp()
{
popupWindow = window.open('admin_upgrade_user.php','User','resizable=yes,scrollbars=yes,width=650,height=550');
popupWindow.focus();
}
</script>
Error now fixed, but not completely
Ok, I seem to be able to get the value. But, no new popup opens up, it displays the value in the current popup, what would trigger this ?