Bonjour,
j ai essayé de faire mais j ai pas pu
voila ma premiere page de formulaire :
ma deuxième page : pop.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 <script type="text/javascript"> function OuvrirPopup(page,nom,option) {window.open(page,nom,option); } </script> </head> <body> <form name="forma" > <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><input type="text" id="ch1" name="formb"/><input type="button" onClick="OuvrirPopup('pop.php?pg=formb','popupchoix','width=300,height=150,menubar=no,status=no')" /></td> </tr> <tr> <td><input type="text" id="ch2" name="formc"/><input type="button" onClick="OuvrirPopup('pop.php?pg=formc','popupchoix','width=300,height=150,menubar=no,status=no')" /></td> </tr> <tr> <td> </td> </tr> </table> </form>
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <?php $form=$_GET['pg']; echo $_GET['pg']; $form="formb" ?> <script type="text/javascript"> function Reporter(l) { var choix=l.options[l.options.selectedIndex].value; var remp=<?php $form; ?> ; window.opener.document.forms["forma"].elements['remp'].value=choix; } </script> </head> <body> <form > <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td><SELECT NAME="Page" id='Page' onChange="Reporter(this)"> <OPTION>-- Choisissez une page ---</OPTION> <OPTION value="Plongée">Plongée</OPTION> <OPTION value="Nucléaire">Nucléaire</OPTION> <OPTION value="Bonheur">Bonheur</OPTION> </SELECT> </td> <td> </td> </tr> </table> </form>
Partager