Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]preg_match
Chelo
post 14.03.2010, 20:26:32
Post #1





Grupa: Zarejestrowani
Postów: 178
Pomógł: 8
Dołączył: 19.03.2007

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


Witam wszystkich. Piszę modyfikacje na swojej forum, dlatego też:

Potrzebuję wyciągnąć ze swojej strony:
Kod
<input id="hash" type="hidden" name="humanverify[hash]" value="0f3879ad704125e6a6add63b2013ec0a" />


0f3879ad704125e6a6add63b2013ec0a

a więc:

Kod
preg_match('#<input id="hash" type="hidden" name="humanverify[hash]" value="([0-9a-z]+)" />#', $result, $posthahs);


kod niestety nie działa

pomoże ktoś?

Ten post edytował Chelo 14.03.2010, 20:26:24
Go to the top of the page
+Quote Post
athei
post 14.03.2010, 21:16:36
Post #2





Grupa: Zarejestrowani
Postów: 389
Pomógł: 141
Dołączył: 11.04.2009

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


Kod
preg_match('#<input id="hash" type="hidden" name="humanverify\[hash\]" value="([0-9a-z]+)" />#', $result, $posthahs)

http://www.php.net/manual/en/regexp.reference.meta.php

Ten post edytował athei 14.03.2010, 21:20:31
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: 12.06.2025 - 22:14