Re: PHP inside Javascript
| From: | Ron Newman | Date: | Tue, 12 Sep 2000 23:17:17 +0000 |
| Subject: | Re: PHP inside Javascript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16461@lists.php.net to get a copy of this message | ||
At 11:25 AM 9/12/00 -0700, you wrote:
>Not dense at all :)
>
>You can submit a form using PHP. At least, you can get the values of the
>form and use the always handy PostToHost() function from Rasmus to do the
>dirty work.
>
>You can search the mailing list for this function. Rasmus has posted that
>here many times over the years. Here's one link :
>
>http://marc.theaimsgroup.com/?l=php-general&m=95642016228753&w=2
>
>Regards,
>
>Joao
This is great. It should be a regular function of PHP, included in the
manual, with examples, etc.
However, when using PostToHost(), I'm getting "Supplied argument is not a
valid File-Handle resource". Checked the archives, and there's one
question about this but didn't find any answers to the guy.
The function itself is cut and pasted, so I won't repeat that, but here's
the call:
$publishername = "mycompany";
$data = "?publishername=" . $publishername;
PostToHost("https://server.com","homedir/myfile.cgi",$data);
Ideas?
*************************************************
Ron Newman
Troubadour Technology
http://www.imt.net/~ronman/
*************************************************