The child window consists of name and checkboxes. The user can check more than one checkbox. All the values of checkbox has to be shwn in the list box of the parent form. Please help with code & examples.
If you don't mind re-loading the parent form, assign a variable to the checkbox (in a form):
<input type=checkbox value="checked" name="pizza">
Then, on submit, have the parent form as the action. In this way, you will now have access to $pizza in your parent form.
Now right the parent form so that under the list box you have something like:
Code:
<?php
if ($pizza == "checked")
{
echo "<option>Pizza</option>\n"
}
?>
If you don't want to have to reload the form, then you are looking at some combination of php and java (heavier on the java side to allow for the automatic refresh of the form).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.