Thanks for the reply, Eric 🙂
No, I'm not trying to fool Site B's form into thinking it's filled out. I'm actually trying to fill it out 🙂
What I have is a page with a frame. The "header" frame has a link that runs this function:
<code>
function insert_info() {
top.main.FormA.FieldA.value = "test";
}
</code>
Where main is the other frame in my page. In JavaScript, this is not allowed because the page in the "main" frame is offsite, therefor I can not insert text into its forms.
Enter PHP.
I'm using this script to grab the page and put it in the main frame so that JavaScript thinks it's coming from my site.
<code>
$file = fopen("http://www.siteB.com", "r");
while(!feof($file)) {
$line = fgets($file, 1024);
echo $line;
}
fclose($file)
</code>
This is where the problems come in.
1) The dang site won't keep my user logged in.
2) The PHP function can't parse JavaScript so I get the "no JavaScript" version.
Hope this helps explain 🙂