php_curl help
Posted: Mon Nov 14, 2005 10:29 pm
feyd | Please use
but i am not able to log in..
what is wrong with my code?
How can i make one that will enable me to log in the 12dailypro?
thanks.
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hi, I am trying to create an auto log in script for http://www.12dailypro.com. code below:Code: Select all
<?php
$var1 = 'email@yahoo.com';
$var2 = 'password';
$site = "http://www.12dailypro.com/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"email=$username&passwd=$password&form='sent'");
curl_exec($ch);
curl_close($ch);
$direction = "http://www.12dailypro.com/members/?login=true&";
header("location: $direction");
?>what is wrong with my code?
How can i make one that will enable me to log in the 12dailypro?
thanks.
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]