🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #230881

Re: parsowanie HTMLa przez interpreter PHP?

#230881
From: jivanmukta
Date: Tue, 03 Feb 2015 13:31
36 lines
2077 bytes
> Sprawdź co masz w pasku adresu, jak wyślesz formularz z takim elementem.

Napisałem test_get_from.php: 

<html>
<head><title>Test GET</title></head>
<body>
<form name="test" method="GET" action="test_get_display.php">
<select multiple name="languages[]">
<option value="B">Basic</option>
<option value="C">C++</option>
<option value="A">Assembler</option>
</select>
<input type="submit" name="btn" value="send">
</form>
</body>
</html>

Oraz test_get_display.php:

<html>
<head>
<title>Test</title>
</head>
<body>
<?php
var_dump($_GET['languages']);
?>
</body>
</html>

I dostałem:

http://localhost/~robert/test_get_display.php?languages%5B%5D=B&languages%5B%5D=C&languages%5B%5D=A&btn=send

Teraz rozumiem. Dzięki za pomoc.
Technical Details
Message-ID: <9c7cb192-da4f-4ec8-a8fb-2c4c80e79e4f@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!news.ripco.com!news.glorb.com!hl2no8790502igb.0!news-out.google.com!q4ni26qan.0!nntp.google.com!bm13no5758899qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <fff77c68-e6ef-417c-978e-6b1187d72436@googlegroups.com> <zmrufckmyar7$.vzsmhcjn9x7v.dlg@40tude.net>

Show Full Headers
Complete Article Headers
X-Received: by 10.42.254.135 with SMTP id ne7mr22377713icb.30.1422970318102;        Tue, 03 Feb 2015 05:31:58 -0800 (PST)
X-Received: by 10.140.21.146 with SMTP id 18mr107641qgl.30.1422970318071; Tue, 03 Feb 2015 05:31:58 -0800 (PST)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!news.ripco.com!news.glorb.com!hl2no8790502igb.0!news-out.google.com!q4ni26qan.0!nntp.google.com!bm13no5758899qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.php
Date: Tue, 3 Feb 2015 05:31:57 -0800 (PST)
In-Reply-To: <zmrufckmyar7$.vzsmhcjn9x7v.dlg@40tude.net>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.73.80.243; posting-account=Fd8BNwoAAACl8PCi6-fI0bkHGOgt6LMa
NNTP-Posting-Host: 89.73.80.243
References: <fff77c68-e6ef-417c-978e-6b1187d72436@googlegroups.com> <zmrufckmyar7$.vzsmhcjn9x7v.dlg@40tude.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9c7cb192-da4f-4ec8-a8fb-2c4c80e79e4f@googlegroups.com>
Subject: Re: parsowanie HTMLa przez interpreter PHP?
From: jivanmukta@poczta.onet.pl
Injection-Date: Tue, 03 Feb 2015 13:31:58 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit