hi
i have a problem with php and javascript 😉
okay this is the scenario :
i have a textbox and a button on main page. when i press this button new window is popuped( child window).. which is a php page.. i
am not using method=send and action="xxx.php" coz i have to show this page in a pop up. so the value of textbox in parent window is
carried to child window (popup) by javascript : opener.document.formname.txtboxname.value and i need to set this value to some
variable in php for database query ... get the result and send back the result to the main window.
i tried to set the value carried from parent window to a hidden field on php page and set it's value to some variable ...by doing
something like this
<?php
print<<<EOF
<form name="xyz">
<input type="hidden" name ="abc"> //this is a hidden field
</form>
EOF;
echo'
// this sets the value from main window to hidden field ... it does sets the value
<script language = JavaScript>
document. xyz.abc.value = opener.form.txtbox.value;
</script>
';
$somevar = $abc
// this is not working ....
?>
... i just couldnt find a way to do this ...
does anyone know a better way to do this ??? please ENLIGHTEN me ... i am stucked at my work with this simple thingy .. help
meeee. you can mail me at ilam@gispl.com
hope i did make myself clear and you understood what i want 😉