hi there i am trying to creat a php script to login to my tesco account but for some reason the cookies are not working please help here is my script below and also an example of my script below so u can check it out .
<?php
$url = "https://secure.tesco.com/register/default.aspx?vstore=0";
//
$h = curl_init();
curl_setopt($h, CURLOPT_URL, $url);
curl_setopt($h, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($h, CURLOPT_POST, true);
curl_setopt($h, CURLOPT_POSTFIELDS, "form=fSignin&from=https%3A%2F%2Fsecure.tesco.com%2Fclubcard%2Fmyaccount%2Fhome.aspx&formData=bmV3UmVnPWZhbHNlJg%3D%3D&loginID=test%40hotmail.com&password=test&seamlesswebtag=&confirm-signin.x=47&confirm-signin.y=18");
curl_setopt($h, CURLOPT_HEADER, true);
curl_setopt($h, CURLOPT_RETURNTRANSFER, true);
curl_setopt($h, CURLOPT_COOKIE, 'tmpfile.tmp');
curl_setopt($h, CURLOPT_COOKIEJAR, 'tmpfile.tmp');
curl_setopt($h, CURLOPT_COOKIEFILE, 'tmpfile.tmp');
//
$result = curl_exec($h);
echo $result;
?>
can someplease help me fix this so it gets and uses the cookies properly