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 ...