I have some information I need to submit to a remote form. I don't have control over the remote form. How would I do this?
More details: (examples made simple)
// REMOTE FORM:
<form method=post action=somepage.shtml>
<input type=text name=thevar>
</FORM>
I want to make a script that does something like this:
<?
function FormPost($target, $input){
$handle=fopen($target, 'w');
fputs($handle, $input);
fclose($handle);
}
Function generate_form_output($input) {
// grind $input to a form-based format
return $output;
}
$thevar='some stuff to send';
$output=generate_form_output($thevar);
FormPost('somepage.shtml', $thevar);
?>
Ok, crude, (pseudo code) but it communicates my goals, no? Basically, I have variables I want to submit to a form that I can't control (and thus use serialize())
Thanks!
-Ben