Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wysyłka na URL $_POST
Randallmaster
post 6.06.2013, 11:11:21
Post #1





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

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


Witam,

Potrzebuje wysłać zmiene w $_POST:

$_POST['name']
$_POST['surname']

na adres: http://docelowyadres.pl/

nie może to być w formularzu<form>.

Próbowałem tak:

$postdata = http_build_query(array('NAME' => $_POST['name'], 'SURNAME' => $_POST['surname']));
$context = stream_context_create($postdata);
fopen('http://docelowyadres.pl/', 'r', false, $context);

niestety wyskakują błędy

Warning: stream_context_create() expects parameter 1 to be array, string given in ...

Warning: fopen() expects parameter 4 to be resource, string given in ...
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: 14.06.2025 - 22:12