I am trying to update my clients' control panel email address from a php form on my website. My php script should log into the client's account, pass the email variable to saveemail.html, and update their address.
Unfortunately, it appears that saveemail.html doesn't pick up the passed variable.
Would anyone have any ideas on how to do this? Here's what I've been working with:
// update control panel email address
// $host is already defined
$socket = fsockopen($host,2082);
$user = &$username&;
$password = $value['password'];
$authstr = &$user:$password&;
$pass_cp = base64_encode($authstr);
$in = &GET saveemail.html?email=$email HTTP/1.0\r\nAuthorization: Basic $pass_cp \r\n&;
fputs($socket,$in);
fclose($socket);
I've also tried
$in = &GET /frontend/vertex/saveemail.html?email=$email HTTP/1.0\r\nAuthorization: Basic $pass_cp \r\n&;
and
$in = &GET http://$host/frontend/vertex/saveemail.html?email=$email HTTP/1.0\r\nAuthorization: Basic $pass_cp \r\n&;
Any help is greatly appreciated!



LinkBack URL
About LinkBacks
Reply With Quote
I'm integrating small requirements like this email address update into a pre-built script I found called Service Support Manager (SSM).




