Hopefully someone can tell me what I'm doing wrong, because I just can't pin point. I have googled and searched through this site and I'm stumped.
Objective: Make a simple login cURL script (this is my site)
Link: http://www.crackarcade.com
cURL script:
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,"http://www.crackarcade.com");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, "username=games&password=games");
curl_exec ($curl);
curl_close ($curl);
echo $curl;
?>
HTML code of login:
<form action="http://www.crackarcade.com/index.php?action=login" method="post"><input type="hidden" name="PHPSESSID" value="faba60f6b18c0b0f2124aed1dbf5238b" />
Username:<br><input type="text" name="username" maxlength="20" size="20"><br>
Password:<br><input type="password" name="password" maxlength="20" size="20"><br>
<input type="checkbox" name="remember" value="1" checked="checked"> Remember me<br>
<input type="submit" name="submit" value="Log In">
</form>
When running the script it does not fill in the username or password