Values van popup venster naar hoofdvenster
Weet er iemand hoe dit komt?
Dit is het script van mijn hoofdvenster
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<form action="register.php" method="post" name="registration_form">
<input type="hidden" name="operation" value="submit">
<!-- African Parrots -->
<input type="hidden" name="african_grey_parrot" value="<?=$user_details['african_grey_parrot'];?>">
<input type="hidden" name="brown_headed_parrot" value="<?=$user_details['brown_headed_parrot'];?>">
<input type="hidden" name="brown_necked_parrot" value="<?=$user_details['brown_necked_parrot'];?>">
<input type="hidden" name="jardines_parrot" value="<?=$user_details['jardines_parrot'];?>">
<input type="hidden" name="lesser_vasa_parrot" value="<?=$user_details['lesser_vasa_parrot'];?>">
<input type="hidden" name="meyers_parrot" value="<?=$user_details['meyers_parrot'];?>">
<input type="hidden" name="niam_niam_parrot" value="<?=$user_details['niam_niam_parrot'];?>">
<input type="hidden" name="red_bellied_parrot" value="<?=$user_details['red_bellied_parrot'];?>">
<input type="hidden" name="ruppells_parrot" value="<?=$user_details['ruppells_parrot'];?>">
<input type="hidden" name="senegal_parrot" value="<?=$user_details['senegal_parrot'];?>">
<input type="hidden" name="vasa_parrot" value="<?=$user_details['vasa_parrot'];?>">
<input type="hidden" name="yellow_faced_parrot" value="<?=$user_details['yellow_faced_parrot'];?>">
<!--hier staat de rest van het registratie formulier(adres, naam,..)-->
<input name="form_register_proceed" type="submit" id="form_register_proceed" value="Verder" />
<input type="hidden" name="operation" value="submit">
<!-- African Parrots -->
<input type="hidden" name="african_grey_parrot" value="<?=$user_details['african_grey_parrot'];?>">
<input type="hidden" name="brown_headed_parrot" value="<?=$user_details['brown_headed_parrot'];?>">
<input type="hidden" name="brown_necked_parrot" value="<?=$user_details['brown_necked_parrot'];?>">
<input type="hidden" name="jardines_parrot" value="<?=$user_details['jardines_parrot'];?>">
<input type="hidden" name="lesser_vasa_parrot" value="<?=$user_details['lesser_vasa_parrot'];?>">
<input type="hidden" name="meyers_parrot" value="<?=$user_details['meyers_parrot'];?>">
<input type="hidden" name="niam_niam_parrot" value="<?=$user_details['niam_niam_parrot'];?>">
<input type="hidden" name="red_bellied_parrot" value="<?=$user_details['red_bellied_parrot'];?>">
<input type="hidden" name="ruppells_parrot" value="<?=$user_details['ruppells_parrot'];?>">
<input type="hidden" name="senegal_parrot" value="<?=$user_details['senegal_parrot'];?>">
<input type="hidden" name="vasa_parrot" value="<?=$user_details['vasa_parrot'];?>">
<input type="hidden" name="yellow_faced_parrot" value="<?=$user_details['yellow_faced_parrot'];?>">
<!--hier staat de rest van het registratie formulier(adres, naam,..)-->
<input name="form_register_proceed" type="submit" id="form_register_proceed" value="Verder" />
En dit is de code in mijn popup venster
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<script langauge="javascript">
function post_value(){
opener.document.registration_form.yellow_faced_parrot.value = document.popupForm.yellow_faced_parrot.value;
opener.document.registration_form.vasa_parrot.value = document.popupForm.vasa_parrot.value;
opener.document.registration_form.senegal_parrot.value = document.popupForm.senegal_parrot.value;
opener.document.registration_form.ruppells_parrot.value = document.popupForm.ruppells_parrot.value;
opener.document.registration_form.red_bellied_parrot.value = document.popupForm.red_bellied_parrot.value;
opener.document.registration_form.niam_niam_parrot.value = document.popupForm.niam_niam_parrot.value;
opener.document.registration_form.meyers_parrot.value = document.popupForm.meyers_parrot.value;
opener.document.registration_form.lesser_vasa_parrot.value = document.popupForm.lesser_vasa_parrot.value;
opener.document.registration_form.jardines_parrot.value = document.popupForm.jardines_parrot.value;
opener.document.registration_form.brown_necked_parrot.value = document.popupForm.brown_necked_parrot.value;
opener.document.registration_form.brown_headed_parrot.value = document.popupForm.brown_headed_parrot.value;
opener.document.registration_form.african_grey_parrot.value = document.popupForm.african_grey_parrot.value;
self.close();
}
</script>
</head>
<body>
<form name="popupForm" method=post action=''>
<table width="100%" border="0" celpadding="3" cellspacing="2">
<tr>
<td valign="top" width="50%">
<table width="100%" border="0" cellpadding="1" cellspacing="1" class="border">
<tr>
<td colspan="1" class="c3"><b>
<?=MSG_AFRICAN_PARROTS;?>
</b></td>
</tr>
<tr class="c5">
<td><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="150" height="1"></td>
</tr>
<tr class="c1">
<td><input type="checkbox" name="african_grey_parrot" value="1"
<? echo ($user_details['african_grey_parrot'] == 1) ? 'checked' : '';?> /><?=MSG_AFRICAN_GREY_PARROT;?></td>
</tr>
<tr class="c2">
<td><input type="checkbox" name="brown_headed_parrot" value="1"
<? echo ($user_details['brown_headed_parrot'] == 1) ? 'checked' : '';?> /><?=MSG_BROWN_HEADED_PARROT;?></td>
</tr>
<tr class="c1">
<td><input type="checkbox" name="brown_necked_parrot" value="1"
<? echo ($user_details['brown_necked_parrot'] == 1) ? 'checked' : '';?> /><?=MSG_BROWN_NECKED_PARROT;?></td>
</tr>
<!-- enzovoort tot de laatse vogel -->
<tr class="c4">
<td align="center" colspan="1"><INPUT TYPE="button" VALUE="<?=GMSG_PROCEED;?>" onClick="post_value();"></td>
</tr>
</table>
</td>
</tr>
</form>
function post_value(){
opener.document.registration_form.yellow_faced_parrot.value = document.popupForm.yellow_faced_parrot.value;
opener.document.registration_form.vasa_parrot.value = document.popupForm.vasa_parrot.value;
opener.document.registration_form.senegal_parrot.value = document.popupForm.senegal_parrot.value;
opener.document.registration_form.ruppells_parrot.value = document.popupForm.ruppells_parrot.value;
opener.document.registration_form.red_bellied_parrot.value = document.popupForm.red_bellied_parrot.value;
opener.document.registration_form.niam_niam_parrot.value = document.popupForm.niam_niam_parrot.value;
opener.document.registration_form.meyers_parrot.value = document.popupForm.meyers_parrot.value;
opener.document.registration_form.lesser_vasa_parrot.value = document.popupForm.lesser_vasa_parrot.value;
opener.document.registration_form.jardines_parrot.value = document.popupForm.jardines_parrot.value;
opener.document.registration_form.brown_necked_parrot.value = document.popupForm.brown_necked_parrot.value;
opener.document.registration_form.brown_headed_parrot.value = document.popupForm.brown_headed_parrot.value;
opener.document.registration_form.african_grey_parrot.value = document.popupForm.african_grey_parrot.value;
self.close();
}
</script>
</head>
<body>
<form name="popupForm" method=post action=''>
<table width="100%" border="0" celpadding="3" cellspacing="2">
<tr>
<td valign="top" width="50%">
<table width="100%" border="0" cellpadding="1" cellspacing="1" class="border">
<tr>
<td colspan="1" class="c3"><b>
<?=MSG_AFRICAN_PARROTS;?>
</b></td>
</tr>
<tr class="c5">
<td><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="150" height="1"></td>
</tr>
<tr class="c1">
<td><input type="checkbox" name="african_grey_parrot" value="1"
<? echo ($user_details['african_grey_parrot'] == 1) ? 'checked' : '';?> /><?=MSG_AFRICAN_GREY_PARROT;?></td>
</tr>
<tr class="c2">
<td><input type="checkbox" name="brown_headed_parrot" value="1"
<? echo ($user_details['brown_headed_parrot'] == 1) ? 'checked' : '';?> /><?=MSG_BROWN_HEADED_PARROT;?></td>
</tr>
<tr class="c1">
<td><input type="checkbox" name="brown_necked_parrot" value="1"
<? echo ($user_details['brown_necked_parrot'] == 1) ? 'checked' : '';?> /><?=MSG_BROWN_NECKED_PARROT;?></td>
</tr>
<!-- enzovoort tot de laatse vogel -->
<tr class="c4">
<td align="center" colspan="1"><INPUT TYPE="button" VALUE="<?=GMSG_PROCEED;?>" onClick="post_value();"></td>
</tr>
</table>
</td>
</tr>
</form>
Alvast bedankt voor de hulp!!!
Gewijzigd op 01/01/1970 01:00:00 door Lander Van Nieuwenhuyse
Er zijn nog geen reacties op dit bericht.