![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 6 Pomógł: 0 Dołączył: 29.09.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam.
Prosty program , prosty problem . Formularz HTML ma przesłać dane z pola textarea metodą POST do skryptu PHP . Formularz : Kod <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="pl"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <title>Planer Ataków</title> </head> <body> <textarea name="zrodla" rows="30" cols="40"></textarea> <br> <input type="submit" value="Dalej" /> </form> </body> </html> Skrypt : Kod <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="pl"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <title>Planer Ataków</title> </head> <body> <?PHP //Pobireram listę źródeł $zrodla=$_POST[zrodla]; echo $zrodla; ?> <body> W formularzu Wpisuję np. coś takiego : 1 gąska 2 łabądź A skrypt generuje mi coś takiego : 1 gÄ ska 2 ĹabÄ dĹş Jak zrobić żeby formularz wysyłał to co jest napisane a skrypt odbierał to co do niego przychodzi ? ###### ApacheFriends XAMPP (basic package) version 1.6.7 ###### Apache 2.2.9 MySQL 5.0.51b PHP 5.2.6 + PHP 4.4.9 + PEAR PHP-Switch win32 1.0 (please use the "php-switch.bat") XAMPP Control Version 2.5 from www.nat32.com XAMPP Security 1.0 SQLite 2.8.15 OpenSSL 0.9.8h phpMyAdmin 2.11.7 ADOdb 4.98 Mercury Mail Transport System v4.52 FileZilla FTP Server 0.9.25 Webalizer 2.01-10 Zend Optimizer 3.3.0 eAccelerator 0.9.5.3 for PHP 5.2.6 (comment out in the php.ini) |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 09:25 |