
Pozdrawiam
<form action="http://www.afrin.wp.pl/zdjecie/id,4291.html" method="post"> <pre> event : <input type="text" name="event" value="1"> formname : <input type="text" name="formname" value="oceny"> Pomyslowosc : <input type="text" name="ocenaPomyslowosc" value="10"> Profesjonalizm : <input type="text" name="ocenaProfesjonalizm" value="10"> Jakosc : <input type="text" name="ocenaJakosc" value="10"> <input type="submit" value="send"> </pre> </form>
<? function createPostString($aPostFields) { foreach ($aPostFields as $key => $value) { } } $postFields['ocenaPomyslowosc'] = '10'; $postFields['ocenaProfesjonalizm'] = '10'; $postFields['ocenaJakosc'] = '10'; $ch = curl_init('http://www.afrin.wp.pl/zdjecie/id,4291.html'); curl_setopt($ch, CURLOPT_POSTFIELDS, createPostString($postFields)); curl_exec($ch); curl_close($ch); ?>
<? $postFields['ocenaPomyslowosc'] = '10'; $postFields['ocenaProfesjonalizm'] = '10'; $postFields['ocenaJakosc'] = '10'; $ch = curl_init('http://www.afrin.wp.pl/zdjecie/id,4291.html'); curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); curl_setopt($ch, CULROPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION , true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_POST , true); curl_exec($ch); curl_close($ch); ?>
<? $postFields['ocenaPomyslowosc'] = '10'; $postFields['ocenaProfesjonalizm'] = '10'; $postFields['ocenaJakosc'] = '10'; $ch = curl_init('http://www.afrin.wp.pl/zdjecie/id,4291.html'); curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); curl_setopt($ch, CULROPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION , true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_POST , true); curl_exec($ch); curl_close($ch); ?>
<? $cookie_file = "cookie.txt"; $postFields['event'] = '1'; $postFields['formname'] = 'oceny'; $postFields['ocenaPomyslowosc'] = '10'; $postFields['ocenaProfesjonalizm'] = '10'; $postFields['ocenaJakosc'] = '10'; $ch = curl_init('http://www.afrin.wp.pl/zdjecie/id,4291.html'); curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); curl_setopt($ch, CULROPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION , true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_POST , true); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file); curl_exec($ch); curl_close($ch); ?>
<? $cookie_file = "cookie.txt"; $postFields['event'] = '1'; $postFields['formname'] = 'oceny'; $postFields['ocenaPomyslowosc'] = '10'; $postFields['ocenaProfesjonalizm'] = '10'; $postFields['ocenaJakosc'] = '10'; $ch = curl_init('http://www.afrin.wp.pl/zdjecie/id,4291.html'); curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); curl_setopt($ch, CULROPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION , true); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_POST , true); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_USERAGENT, "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.13) Gecko/20080311 Firefox/3.5"); curl_exec($ch); curl_close($ch); ?>
$ch = curl_init('http://www.afrin.wp.pl/zdjecie/id,4291.html'); $pack = "event=1&formname=oceny&ocenaPomyslowosc=10&ocenaProfesjonalizm=10&ocenaJakosc=10"; curl_setopt($ch, CURLOPT_POSTFIELDS, $pack);