Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> htmlarea zapis do mysql
-Gość_lucks_*-
post
Post #1





Goście







wstawiłem sobie na strone htmlarea, czyli edytorek do tekstu, dane chciałbym zapisać do bazy i tutaj pytanie jak poprawnie to zrobić? jak htmlarea przechowuje dane?
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Przechowuje tak samo jak każde inne pole formularza - tworzy sobie zmienną taka sama jak nazwa pola formularza.

  1. <form action="odbierz.php" method="post">
  2. <input type="text" name="dane">
  3. <input type="submit" value="wyslij">
  4. </form>


teraz masz dostęp do pola poprzez
  1. <?php
  2. //plik: odbierz.php
  3.  
  4. print $_POST['dane'];
  5. ?>


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
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 Aktualny czas: 21.08.2025 - 18:46