akkad Posted August 16, 2007 Share Posted August 16, 2007 hello every body.. i have a page which contains 2 frames: <code> HTML: frameset rows="7%,84%" > <frame src="first.php" name="first" noresize scrolling="No" frameborder="0"> <frame src="second.php" name="second" noresize scrolling="No" frameborder="0"> <NOFRAMES><body>Your browser does not support frames. You must set AWStats UseFramesWhenCGI parameter to 0 to see your reports. </body></NOFRAMES> </frameset> </code> first frame: first, contains a page the contains form <code> php: <?php echo" <FORM style=PADDING-RIGHT: 0px; MARGIN-TOP: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px name=FormDateFilter method=get action=second.php target=second>"; echo"<SELECT class=formfield name=day> <OPTION selected>-Day-</OPTION> <OPTION value=01>01</OPTION> <OPTION value=02>02</OPTION> <OPTION value=03>03</OPTION> <OPTION value=04 >04</OPTION> <OPTION value=05>05</OPTION> <OPTION value=06>06</OPTION> <OPTION value=07>07</OPTION> <OPTION value=08>08</OPTION> <OPTION value=09>09</OPTION> <OPTION value=10>10</OPTION> <OPTION value=11>11</OPTION> <OPTION value=12>12</OPTION> <OPTION value=13>13</OPTION> <OPTION value=14>14</OPTION> <OPTION value=15>15</OPTION> <OPTION value=16 >16</OPTION> <OPTION value=17>17</OPTION> <OPTION value=18>18</OPTION> <OPTION value=19>19</OPTION> <OPTION value=20>20</OPTION> <OPTION value=21>21</OPTION> <OPTION value=22>22</OPTION> <OPTION value=23>23</OPTION> <OPTION value=24>24</OPTION> <OPTION value=25>25</OPTION> <OPTION value=26>26</OPTION> <OPTION value=27>27</OPTION> <OPTION value=28>28</OPTION> <OPTION value=29>29</OPTION> <OPTION value=30>30</OPTION> <OPTION value=31>31</OPTION> </SELECT> <SELECT class=formfield name=month> <OPTION selected>-Month-</OPTION> <OPTION value=01>Jan</OPTION> <OPTION value=02>Feb</OPTION> <OPTION value=03>Mar</OPTION> <OPTION value=04 >Apr</OPTION> <OPTION value=05>May</OPTION> <OPTION value=06>Jun</OPTION> <OPTION value=07>Jul</OPTION> <OPTION value=08>Aug</OPTION> <OPTION value=09>Sep</OPTION> <OPTION value=10>Oct</OPTION> <OPTION value=11>Nov</OPTION> <OPTION value=12>Dec</OPTION> </SELECT> <SELECT class=aws_formfield name=year> <OPTION selected>-Year-</OPTION> <OPTION value=2006>2006</OPTION> <OPTION value=2007>2007</OPTION> </SELECT> <input type=text name=first_param value=First-Parameter> <input type=text name=second_param value=Second-Parameter> <INPUT class=aws_button type=submit value=OK>"; ?> </code> the second frame, second , contains a page that have 2 frames also : <code> HTML: <frameset name="akkad" cols="20%,50%" > <frame src="left.php" name="left" noresize frameborder="1"> <frame src="body.php" name="body" noresize frameborder="1"> </frameset> </code> the first frame , left, contains the left.php page: <code> HTML: <FORM name="SendForm" action="body.php" method="post" target="body"> <input name="fp" value="<?php $_GET['first_param'];?>" type="hidden"> <input name="sp" value="<?php $_GET['second_param'];?>" type="hidden"> <input name="day" value="<?php $_GET['day'];?>" type="hidden"> <input name="month" value="<?php $_GET['month'];?>" type="hidden"> <input name="year" value="<?php $_GET['year'];?>" type="hidden"> </form> <a href="javascript:document.SendForm.submit();">summary[/url] </code> the second frame , body contains the page body.php <code> php: <?php $fp=$_GET['first_param']; $sp =$_GET['second_param']; $day=$_GET['day']; $month=$_GET['month']; $year=$_GET['year']; ?> </code> now what i want is to send the form variables or informations to both frames in the second.php page is there any possibility for that and how ? Back to top Quote Link to comment https://forums.phpfreaks.com/topic/65187-submitting-form-to-multiple-pages/ Share on other sites More sharing options...
tibberous Posted August 16, 2007 Share Posted August 16, 2007 You can do it with javascript. I swear I haven't seen frames used in like 6 years though. Until this thread, I almost forgot there were frames - I can not think of one web site that is remotely popular that uses them. Quote Link to comment https://forums.phpfreaks.com/topic/65187-submitting-form-to-multiple-pages/#findComment-325494 Share on other sites More sharing options...
justravis Posted August 16, 2007 Share Posted August 16, 2007 I think CURL could be used as well. Quote Link to comment https://forums.phpfreaks.com/topic/65187-submitting-form-to-multiple-pages/#findComment-325553 Share on other sites More sharing options...
tibberous Posted August 16, 2007 Share Posted August 16, 2007 Pretty sure curl only works in this situation if you send it to an unrelated copy of the form, not the one in the users browser, if that makes any sense. Quote Link to comment https://forums.phpfreaks.com/topic/65187-submitting-form-to-multiple-pages/#findComment-325589 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.