I'm using curl to post variables to a script. It works fine, except on the output page I get a character "0" displayed for no apparent reason. If I do a view source, at the end of my script is :
<form blah blah.....
...form>
</body>
</html>
If I take the form out of the new page, I don't get this problem. Can anybody help me please. The curl code I'm using is :
<?
$URL="www.mydomain/newpage.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://$URL");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "name=$name & age=$age");curl_exec ($ch);
curl_close ($ch);
?>