PHP-GTK, COM, IE, and Form Post?
| From: | Benjamin Smith | Date: | Fri, 29 Oct 2004 03:37:16 +0000 |
| Subject: | PHP-GTK, COM, IE, and Form Post? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-5173@lists.php.net to get a copy of this message | ||
Hi all,
My PHP-GTK app now needs to connect to a website in order to publish values
generated locally.
Part of this is to login to the remote server. However, I've been completely
unable to get a form post to work (to avoid leaving the login/password on the
URL in the browser history)
I found some references to post with arrays and it just did NOT fly. I tweaked
for hours before giving up. Below is my most recent code:
Anybody ever done this? Any idea where to look?
<?
// AN ABORTIVE ATTEMPT TO USE FORM POST...
$a=array(
'a',
'=',
'5',
);
foreach($a as $k => $td)
{
$key=$k+1;
$pass[$key]=ord($td);
}
$browser = new COM("InternetExplorer.Application");
$browser->Visible = true;
$browser->Navigate(
"http://chico.benjamindsmith.com/show.php",
null,
null,
$pass,
"Content-Type: application/x-www-form-urlencoded\r\n");
return false;
?>
-Ben
--
"I kept looking around for somebody to solve the problem.
Then I realized I am somebody"
-Anonymous