Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Pobranie wartości z URL GET
vander1989
post
Post #1





Grupa: Zarejestrowani
Postów: 70
Pomógł: 0
Dołączył: 24.08.2009

Ostrzeżenie: (0%)
-----


Siemka! Wpisuję sobie wartość domena.pl/strona.php?zmienna=wartosc
W Formularzu na tej samej stronie robię coś takiego
  1. <input type="hidden" name="refer" value="<?php $_GET[zmienna] ?>"/>
ale niestety nie mogę tej wartości wypisać po przejściu na stroną po wypełnieniu formularza ta wartość jest niewidoczna. Proszę o pomoc

Ten post edytował vander1989 28.06.2011, 17:12:30
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
vander1989
post
Post #2





Grupa: Zarejestrowani
Postów: 70
Pomógł: 0
Dołączył: 24.08.2009

Ostrzeżenie: (0%)
-----


  1. <?php
  2. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
  5. <meta name="Description" content=" [wstaw tu opis strony] ">
  6. <meta name="Keywords" content=" [wstaw tu slowa kluczowe] ">
  7. <meta name="Author" content=" [dane autora] ">
  8. <meta name="Generator" content="kED2">
  9.  
  10. <title> [tytuł strony] </title>
  11.  
  12. <link rel="stylesheet" href=" styl.css " type="text/css">
  13. <link rel="stylesheet" href=" menu_style.css " type="text/css">
  14. </head>
  15. <body>
  16. <center>
  17. <script src="http://cdn.jotfor.ms/jotform.jgz?3.1.110" type="text/javascript"></script>
  18. <script type="text/javascript">
  19. JotForm.init();
  20. </script>
  21. <link href="http://cdn.jotfor.ms/jotform.cssgz?3.1.110" rel="stylesheet" type="text/css" />
  22. <link type="text/css" rel="stylesheet" href="http://www.jotform.com/css/styles/baby_blue.css" />
  23. <style type="text/css">
  24. .form-label{
  25. width:100px !important;
  26. }
  27. .form-label-left{
  28. width:100px !important;
  29. }
  30. .form-line{
  31. padding:10px;
  32. }
  33. .form-label-right{
  34. width:100px !important;
  35. }
  36. .form-all{
  37. width:332px;
  38. color:Black !important;
  39. font-family:Arial;
  40. font-size:14px;
  41. }
  42. </style>
  43.  
  44. <form class="jotform-form" action="zarejestrowano.php" method="post" name="form_11763141263" id="11763141263" accept-charset="utf-8">
  45. <div class="form-all">
  46. <ul class="form-section">
  47. <li id="cid_1" class="form-input-wide">
  48. <div class="form-header-group">
  49. <h2 id="header_1" class="form-header">
  50. Logowanie
  51. </h2>
  52. </div>
  53. </li>
  54. <input type="hidden" name="refer" value="' . $_GET['ref'] . '"/>
  55. <li class="form-line" id="id_4">
  56. <label class="form-label-left" id="label_4" for="input_4">
  57. Login<span class="form-required">*</span>
  58. </label>
  59. <div id="cid_4" class="form-input"><span class="form-sub-label-container"><input type="text" class="form-textbox validate[required]" id="input_4" name="q4_login4" size="20" />
  60. <label class="form-sub-label" for="input_4"> Twój login </label></span>
  61. </div>
  62. </li>
  63. <li class="form-line" id="id_5">
  64. <label class="form-label-left" id="label_5" for="input_5">
  65. Hasło<span class="form-required">*</span>
  66. </label>
  67. <div id="cid_5" class="form-input">
  68. <input type="password" class="form-textbox validate[required]" id="input_5" name="q5_haslo" size="20" />
  69. </div>
  70. </li>
  71. <li class="form-line" id="id_8">
  72. <label class="form-label-left" id="label_8" for="input_8">
  73. E-mail<span class="form-required">*</span>
  74. </label>
  75. <div id="cid_8" class="form-input"><span class="form-sub-label-container"><input type="email" class="form-textbox validate[required, Email]" id="input_8" name="q8_email" size="20" />
  76. <label class="form-sub-label" for="input_8"> np. email@mail.pl </label></span>
  77. </div>
  78. </li>
  79. <li id="cid_7" class="form-input-wide">
  80. <div class="form-header-group">
  81. <h2 id="header_7" class="form-header">
  82. Dane do wysyłki
  83. </h2>
  84. </div>
  85. </li>
  86. <li class="form-line" id="id_9">
  87. <label class="form-label-left" id="label_9" for="input_9">
  88. Imię<span class="form-required">*</span>
  89. </label>
  90. <div id="cid_9" class="form-input">
  91. <input type="text" class="form-textbox validate[required]" id="input_9" name="q9_imie" size="20" />
  92. </div>
  93. </li>
  94. <li class="form-line" id="id_10">
  95. <label class="form-label-left" id="label_10" for="input_10">
  96. Nazwisko<span class="form-required">*</span>
  97. </label>
  98. <div id="cid_10" class="form-input">
  99. <input type="text" class="form-textbox validate[required]" id="input_10" name="q10_nazwisko" size="20" />
  100. </div>
  101. </li>
  102. <li class="form-line" id="id_11">
  103. <label class="form-label-left" id="label_11" for="input_11">
  104. Ulica<span class="form-required">*</span>
  105. </label>
  106. <div id="cid_11" class="form-input">
  107. <input type="text" class="form-textbox validate[required]" id="input_11" name="q11_ulica" size="20" />
  108. </div>
  109. </li>
  110. <li class="form-line" id="id_12">
  111. <label class="form-label-left" id="label_12" for="input_12">
  112. Nr mieszkania<span class="form-required">*</span>
  113. </label>
  114. <div id="cid_12" class="form-input">
  115. <input type="text" class="form-textbox validate[required]" id="input_12" name="q12_nrMieszkania" size="20" />
  116. </div>
  117. </li>
  118. <li class="form-line" id="id_13">
  119. <label class="form-label-left" id="label_13" for="input_13">
  120. Miasto<span class="form-required">*</span>
  121. </label>
  122. <div id="cid_13" class="form-input">
  123. <input type="text" class="form-textbox validate[required]" id="input_13" name="q13_miasto" size="20" />
  124. </div>
  125. </li>
  126. <li class="form-line" id="id_14">
  127. <label class="form-label-left" id="label_14" for="input_14">
  128. Poczta<span class="form-required">*</span>
  129. </label>
  130. <div id="cid_14" class="form-input">
  131. <input type="text" class="form-textbox validate[required]" id="input_14" name="q14_poczta" size="20" />
  132. </div>
  133. </li>
  134. <li class="form-line" id="id_15">
  135. <label class="form-label-left" id="label_15" for="input_15">
  136. Kod pocztowy<span class="form-required">*</span>
  137. </label>
  138. <div id="cid_15" class="form-input">
  139. <input type="text" class="form-textbox validate[required]" id="input_15" name="q15_kodPocztowy" size="20" />
  140. </div>
  141. </li>
  142. <li class="form-line" id="id_2">
  143. <div id="cid_2" class="form-input-wide">
  144. <div style="text-align:right" class="form-buttons-wrapper">
  145. <button id="input_2" type="submit" class="form-submit-button">
  146. Rejestracja
  147. </button>
  148. </div>
  149. </div>
  150. </li>
  151. <li style="display:none">
  152. Should be Empty:
  153. <input type="text" name="website" value="" />
  154. </li>
  155. </ul>
  156. </div>
  157. <input type="hidden" id="simple_spc" name="simple_spc" value="11763141263" />
  158. <script type="text/javascript">
  159. document.getElementById("si" + "mple" + "_spc").value = "11763141263-11763141263";
  160. </script>
  161. </form>
  162. </center>
  163. </body>
  164. </html>';
  165. ?>

to jest cos takiego linia 54

Ten post edytował vander1989 29.06.2011, 09:41:26
Go to the top of the page
+Quote Post

Posty w temacie
- vander1989   [PHP]Pobranie wartości z URL GET   28.06.2011, 17:11:27
- - Sagnitor   Spróbuj: [PHP] pobierz, plaintext <input type=...   28.06.2011, 17:26:31
- - Daiquiri   A gdzie masz echo? W sensie echo $zmienna;   28.06.2011, 17:26:34
- - vander1989   Wrzucam to z[PHP] pobierz, plaintext <?php echo...   28.06.2011, 20:08:12
- - mat-bi   $_get != $_GET   28.06.2011, 20:10:37
- - vander1989   Mam z dużych od początku i nic:)   28.06.2011, 20:45:25
- - mat-bi   A nie masz przypadkiem: [PHP] pobierz, plaintext ...   28.06.2011, 20:51:13
- - vander1989   dokładnie coś takiego mam   28.06.2011, 21:08:05
- - Daiquiri   To masz problem z podstawami: [PHP] pobierz, plain...   28.06.2011, 21:32:31
- - vander1989   To niestety nic nie pomaga. $_GET['zmienn...   28.06.2011, 21:55:09
- - worek   Upewnij się czy zmienna jest wogóle przesyłana. Po...   29.06.2011, 00:15:09
- - Daiquiri   Pytanie - gdzie nie jest wyświetlana? W value czy ...   29.06.2011, 07:20:44
- - vander1989   usawiłem przed formularzem czyli co? @worek średn...   29.06.2011, 08:40:13
- - Hpsi+   Pokaż coś wiecej kodu bo aktualnie mamy jedna lini...   29.06.2011, 08:51:17
- - Daiquiri   Cytat(vander1989 @ 29.06.2011, 09:40...   29.06.2011, 08:59:48
- - vander1989   Od początku! Wpisuję sobie w przeglądarkę adre...   29.06.2011, 09:13:33
- - Hpsi+   jesli refer w źródle wygląda tak: [HTML] pobierz,...   29.06.2011, 09:24:56
- - vander1989   RE: [PHP]Pobranie wartości z URL GET   29.06.2011, 09:40:44
- - Hpsi   Czyli masz dobrze. jesli wrzucisz adres www.dome...   29.06.2011, 09:44:27
- - vander1989   Zrobiłem text i wypisuje mi ' . $_GET[...   29.06.2011, 09:54:36
- - peter13135   pewnie dałeś do stringa zamiast wyświetlić jako zm...   29.06.2011, 09:56:08
- - Hpsi   No to ja wymiękam. nie widze błedu. Jedyne co mi p...   29.06.2011, 09:56:57
- - Daiquiri   Cytat(vander1989 @ 29.06.2011, 10:13...   29.06.2011, 09:59:53
- - vander1989   No działa działa html zamiast php głupota sięga z...   29.06.2011, 10:01:07


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 09:44