Pomoc - Szukaj - U¿ytkownicy - Kalendarz
Pe³na wersja: IFRAME {scroll}
Forum PHP.pl > Forum > Po stronie przegl±darki
prest
Witam,,

Mam problem ze scroll barem pod iframe pojawja sie pod firefox pod ie nie
oto link do zrodla registration.html
oto style

oto kod zrodlowy do iframe;

  1. <?
  2. /*************************************************
  3. * Easy Mail Form *
  4. **************************************************
  5. | |
  6. |  Created by Jasper Koops  |
  7. | V1.0  |
  8. |  |
  9. | Last Modified 29-12-2005 |
  10. | |
  11. |  Easy Mail Form is released under the terms |
  12. |  and conditions of the GNU GPL version 2 or  |
  13. | any later version  |
  14. -------------------------------------------------
  15. */
  16. error_reporting( 'E_NONE' );
  17.  
  18. include("config.php");
  19. include("language/$language.php");
  20.  
  21. if( !isset( $_POST['op'] ) ) {
  22. $_POST['op'] = "";
  23. }
  24.  
  25. if($_POST['op'] != "ds"){
  26. $display_block = "
  27. <form action="".$_SERVER['PHP_SELF']."" method="post">
  28. <p style="padding-top: 20px;">
  29. <input type="text" size="35" name="username">
  30. <b>$your_name:</b><br>n
  31. <br><br>n
  32.  
  33. <input type="text" size="35" name="mailaddress">
  34. <b>$your_mailaddress:</b><br>n
  35. <br><br>n
  36.  
  37. <input type="text" size="35" name="city">
  38. <b>City, State, Zip code:</b><br>n
  39. <br><br>n
  40.  
  41. <input type="text" size="35" name="subject">
  42. <b>Church Affliation:</b><br>
  43. <br><br>n
  44.  
  45. <input type="text" size="35" name="message">
  46. <b>Date of arrival</b><br>
  47. <br><br>
  48.  
  49. <input type="hidden" name="op" value="ds">
  50.  
  51. <div style="clear: both; height: 1px; font-size: 0; line-height: 0;"></div>
  52. <input type="submit" class="submitButt" value="$button">
  53. </p>
  54.  
  55.  
  56.  
  57. </form>
  58.  
  59.  
  60.  
  61.  
  62. <p>
  63. Crown Plaza, 70 State St, Rochester, NY (585) 546-3450<br />
  64. Christians On The Move $89.00 + applicable taxes<br /><br />
  65.  
  66. Registration is $25 through July 1st and $30 July 2nd - August 4th. Registration is only required for adults although the convention will host activ
    ities and enrichment for people of all ages. Upon completion of your registration, a confirmation will be mailed to you confi
    rming receipt of your registration and an itinerary of the events planned for Aug
    ust 1 - 4th.
  67.  
  68. The Fellowship thanks you in advance for registering with Christians on the Move
    . See you in August!
  69. </p>
  70. ";
  71.  
  72. }else if($_POST['op'] == "ds"){
  73. //get IP address
  74. $ip = $_SERVER['REMOTE_ADDR'];
  75.  
  76. //make time
  77. $time = time();
  78. $date_message = date("r", $time);
  79.  
  80. //strip tags
  81. $_POST['message'] = strip_tags($_POST['message']);
  82.  
  83. //check if e-mail address is valid
  84. if(!ereg("^.+@.+..+$", $_POST[mailaddress])){
  85.  $display_block = "<p>".$email_invalid."</p><br><br><br>";
  86.  
  87. } else {
  88.  
  89. //check if all fields are filled in
  90. if(empty($_POST['username'])){
  91. $display_block = "<p>$name_empty</p><br><br><br>";
  92.  
  93. } else if(empty($_POST['subject'])){
  94. $display_block = "<p>$subject_empty</p><br><br><br>";
  95.  
  96. } elseif(empty($_POST['mailaddress'])){
  97. $display_block = "<p>$mailaddress_empty</p><br><br><br>";
  98.  
  99. } elseif(empty($_POST['message'])){
  100. $display_block = "<p>$message_empty</p><br><br><br>";
  101.  
  102. } else {
  103.  
  104.  
  105. $_POST['message'] = nl2br($_POST['message']);
  106.  
  107. //create the message
  108. $msg = "<b>$name:</b> $_POST[username]n<br>";
  109. $msg .= "<b>Church Affliation:</b> $_POST[subject]n<br>";
  110. $msg .= "<b>City,State, Zip code:</b> $_POST[city]n<br>";
  111. $msg .= "<b>$mailaddress:</b> $_POST[mailaddress]n<br>";
  112. $msg .= "<b>$date:</b> $date_messagen<br><br>";
  113. $msg .= "<b>Date of arrival:</b><br>n$_POST[message]nnn<br>";
  114. $msg .= "<br><br><b>IP: $ip</b>n";
  115.  
  116. $mailheaders = "Reply-To: ".$_POST['mailaddress']."nMIME-Version: 1.0rnContent-type: text/html; charset=iso-8859-1rn";
  117.  
  118. //send the message
  119. mail($recipent,$standard_subject,$msg,$mailheaders);
  120.  
  121. //show the filled in values
  122. $_POST['recipent'] = ucfirst($_POST['recipent']);
  123. $display_block = "<p><br><b>$your_name:<br></b> $_POST[username]<br><br><br>";
  124.  
  125. $display_block .= "<b><i><p>To pay your registration fee, select PayPal and follow the PayPal instruction
    s. For Payment Form enter your name. For amount enter $25 dollars for each person r
    egistered.</i></b><br><br></p>"
    ;
  126.  
  127.  
  128. $display_block .= "<b><i>
  129.  
  130.  
  131. <form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
  132. <input type="hidden" name="cmd" value="_xclick">
  133. <input type="hidden" name="business" value="wordoflife@frontiernet.net">
  134. <input type="hidden" name="item_name" value="">
  135. <input type="hidden" name="currency_code" value="USD">
  136. <input type="hidden" name="amount" value="">
  137. <input type="image" class="paypalimage" src="http://www.dahgeodesigns.com/christiansonthemove/images/paypalbutton.jpg" name="submit" alt="Make payments with PayPal!">
  138. </form>
  139. </i></b><br><br></p>";
  140. $display_block .= "<b><i><p><font color="#00FFFF">
  141. Thank you for registering for the Christians on the Move Fellowship National Convention 2006. <br> If you have not done so, please select the PayPal button which will complete your registration with your
     monetary confirmation of $25 per person. God bless you and we thank you for visiting our web site. Please check back with us as we periodically have different events throughout the year. Until then see you in August!!!</font></i></b><br><br></p>";
  142. }
  143. }
  144. }
  145. ?>

  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5.  
  6.  
  7. <meta name="Keywords" content="</span>" />
  8. <meta name="Description" content="" />
  9.  
  10. <<span style='color:blue'>meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  11.  
  12. <meta name="robots" content="all" />
  13. <meta name="revisit-after" content="5 days" />
  14.  
  15. <style type="text/css" media="screen,projection">
  16. @import "images/style.css";
  17. </style>
  18.  
  19. </head>
  20.  
  21. <body style="background: #810000;">
  22. <div style="text-align: left; font-size: 12px;" class="cotmfv1">
  23. <p>
  24. To register for the Christians on the Move Fellowship National Convention 2006 August 1st - 4th, please enter your information into the fields below and select Send. Successfully completing each field will ensure your information package is ready for you upon arrival.
  25. </p>
  26.  
  27. [php]<? echo $display_block; ?>[/php]
  28.  
  29. </div>
  30.  
  31.  
  32. </div><br/>
  33.  
  34.  
  35.  
  36.  
  37.  
  38. </body>
  39.  
  40. </html>


-----
edit:
proszê jako¶ sensowanie u¿ywaæ bbcode, bo naprawdê jak cz³owiek widzi takie dziwol±gi to odechciewa siê czytaæ. masz w koñcu ponad 100 postów i nie jeste¶ tu nowy smile.gif
poprawiam
revyag



wydaje sie ze problem lezy gdzies w kodzie php

poniewaz ten ifram ma scroll bar w ieiframe

probowalem sie z tym uporac ale sad.gif
revyag
Proponujê wywaliæ iframe. Zamiast tego wstawiæ div ze scrollem. Bêdzie mniej kodu i mniej problemów.
To jest wersja lo-fi g³ównej zawarto¶ci. Aby zobaczyæ pe³n± wersjê z wiêksz± zawarto¶ci±, obrazkami i formatowaniem proszê kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.