Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> curl i przekierowanie do strony w curl_init
WMP
post 17.02.2008, 11:45:06
Post #1





Grupa: Zarejestrowani
Postów: 35
Pomógł: 0
Dołączył: 23.01.2006
Skąd: Lublin

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


Witam. w stylu strony mam odnośnik:
  1. <a href="http://repo.arch-linux.pl/bug/index.php?step=prze" style="color: red;">Zgłoś przeterminowanie</a>


W kodzie php natomiast:
  1. <?php
  2. if (isset ($_GET['step']) && $_GET['step'] == 'prze') {
  3. $postFields['item_summary'] = $view -> fields['pkgname']."-".$view -> fields['ver'];
  4. $postFields['task_type'] = "2";
  5. $ch = curl_init('http://repo.arch-linux.pl/bug/index.php?do=newtask&project=2');
  6. curl_setopt($ch, CURLOPT_POSTFIELDS, createPostString($postFields));
  7. curl_exec($ch);
  8. curl_close($ch);
  9. }
  10. ?>


Chciałbym, aby po kliknieciu na link funkcja curl dawała wartości $postFields['item_summary'] i $postFields['task_type'] na stronę ttp://repo.arch-linux.pl/bug/index.php?do=newtask&project=2, i otwierała ją już z tymi wartościami. Czy jest to mozliwe? jeżeli tak, to jak to zrobic?
Go to the top of the page
+Quote Post

Posty w temacie


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: 16.07.2025 - 08:53