[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] From PHP to CHM



on 7/18/00 5:21 AM, Claudio Cataldo at claudio.cataldo@xxxxxxx wrote:

> Is there a way to emulate this form in PHP and then send all the variables
> (frefix, numtel ecc...) to sendsms.chm

Yes... Depends on the content really.  But there are two ways: one is to
create a socket and send the information using the POST method.  Manual
Lemos has a class for this at php.upperdesign.com or somethign like that.

Or you can simply make connection and pass the information using GET
querystring.

I.e.
<?
$prefix = 0347;
$numtel = 2376670;
$flash = 1;
$email = "";
$messagetext = urlencode("Prova da Claudio");
memorizza = 1;

$querystring = 
"?prefix=$prefix&numtel=$numtel&flash=$flash&email=$email&messagetext=$messa
getext&memorizza=$memorizza";
fopen("http://www.whatever.com/sendsms.chm"; . $querystring,"r");
?>

Not guaranteeing that is bug free, just doing it from memory.

-k