Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]cURL formularz bez nazw
-Gość-
post
Post #1





Goście







  1. <form action="glos/tak.html">
  2. <input type="submit" value="TAK">
  3. </form>
  4.  
  5. <form action="glos/nie.html">
  6. <input type="submit" value="NIE">
  7. </form>


Jak wypełnić taki formularz cURLem, jeśli musi być kliknięty input submit (odpada po prostu wejście na glos/tak.html)? Chodzi mi o przykładowe kliknięcie TAK przez cURLa. Da się to zrobić ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-Gość-
post
Post #2





Goście







http://przykład.pl:
  1. <form action="glos/tak.html" method="post">
  2. <input type="submit" value="TAK">
  3. </form>
  4.  
  5. <form action="glos/nie.html" method="post">
  6. <input type="submit" value="NIE">
  7. </form>



http://drugiprzyklad.pl:
  1. $post = 'co tutaj ma byc?';
  2. curl_setopt($ch, CURLOPT_POST, 1);
  3. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);



co ma zawierać zmienna $post w drugiprzyklad.pl,
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 15:26