Wiem że są przykłady, ale zawsze brak efektu...
//Edit
To co już mam:
curl.php
<?php
$ch = curl_init('http://www.amxmodx.org/webcompiler.cgi');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>
formularz.html
<form action=curl.php method=post>
Nazwa: <input type=text name=fname size=15><br>Kod:<br>
<div style='margin-left: 10px;'><textarea name=scode rows=30 cols=75>
</textarea></div><br>
<input type=submit value=Compile>
</form>
Refresh...
Refresh nr2...