Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] form input, a warunek
tenloginjestzaje...
post 7.11.2017, 20:29:29
Post #1





Grupa: Zarejestrowani
Postów: 358
Pomógł: 1
Dołączył: 20.07.2014

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


Witam
Nie mogę sobie poradzić z form w php. Chciałbym wyświetlić w części html strony. Dzięki

  1. if(empty($last)) {
  2. $b++;
  3. if($b == 1) $postandanswer.= '<div id="form">'; ?>
  4. <h4 id="info">Dodajesz nowy post</h4>
  5. <label>Treść:</label>
  6. <textarea cols="50" rows="5" class="input" id="description" name="description"></textarea>
  7. <input type="submit" value="dodaj" name="buttonsubmit" id="buttonsubmit" />
  8. <? $postandanswer.= '</div>';
  9. }


Ten post edytował tenloginjestzajety 7.11.2017, 20:30:50


--------------------
Nigdy nie zapominam kliknąć "pomógł". Zastosowanie na stronie [prosze nie spamuj]
Go to the top of the page
+Quote Post
trzczy
post 7.11.2017, 21:24:18
Post #2





Grupa: Zarejestrowani
Postów: 460
Pomógł: 49
Dołączył: 5.06.2011

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


  1. <?php
  2. $last=null;
  3. $b=0;
  4. if(empty($last)) {
  5. $b++;
  6. if($b === 1)
  7. ?>
  8. <div id="form">
  9. <h4 id="info">Dodajesz nowy post</h4>
  10. <label>Treść:</label>
  11. <textarea cols="50" rows="5" class="input" id="description" name="description"></textarea>
  12. <input type="submit" value="dodaj" name="buttonsubmit" id="buttonsubmit">
  13. </div>
  14. <?php
  15. }

https://3v4l.org/QcBkv

Ten post edytował trzczy 7.11.2017, 21:27:14
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 19.06.2025 - 16:29