Here's my current code:
<?php
$ch = curl_init("http://neopets.com/login.phtml?username=TEST&password=TEST&destination=/stockmarket.phtml");
$fp = fopen("grabthetext.txt", "w");
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, false);
$something = file_get_contents("http://neopets.com/stockmarket.phtml");
$something = preg_match("#<marquee>(.*)<\/marquee>#i", $retrievedhtml, $match);
curl_exec($ch);
//echo $something;
//echo $match[0];
curl_close($ch);
fclose($fp);
file_get_contents("grabthetext.txt", "r");
?>
This code prevents the script from logging in:
[code]<script name = 'JavaScript'>
<!--
var subcount = 0;
function one_submit()
{
if (subcount == 0)
{
subcount++;
return true;
}
else
return false;
}
//-->
</script>[/code]
Is there anyway I can bypass the Javascript?