Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Preg_match problem
evolucja
post
Post #1





Grupa: Zarejestrowani
Postów: 362
Pomógł: 27
Dołączył: 14.09.2009

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


Chcę z HTMLa wyciągnąć value z inputa liczba_dodatnia. Fragment strony:
  1. class="img"><input type="hidden" name="liczba_dodatnia" value="4"><button type="submit"><span>

próbuję tak:
  1. preg_match( "@class=\"img\"><input type=\"hidden\" name=\"liczba_dodatnia\" value=\"(.*)\"><button type=\"submit\"><span>@si", $strona, $wyniki );

ale nie wychodzi... W czym jest problem?


--------------------
zmoderowano - waga i rozmiar
Go to the top of the page
+Quote Post

Posty w temacie
- evolucja   [PHP] Preg_match problem   20.02.2010, 19:56:08
- - fifi209   [PHP] pobierz, plaintext <?php  $string = ...   20.02.2010, 20:32:42


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: 20.08.2025 - 21:39