[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] From PHP to CHM
- Subject: Re: [cobalt-users] From PHP to CHM
- From: Kris Dahl <krislists@xxxxxxxxxxxxx>
- Date: Tue Jul 18 12:30:04 2000
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
>
> Thank you
>
> <table width="760" border="0" cellspacing="0" cellpadding="0"
> align="center">
> <tr>
> <td width="508" colspan="3" valign="top" align="center"> <br>
> <table width="100%" border="0" cellspacing="0" cellpadding="0">
> <form method="post" action="sendsms.chm">
> <tr align="center">
> <td> <font size="2"> <b>
> <input type="hidden" name="prefix" value="0347">
> <input type="hidden" name="numtel" value="2376670">
> <input type="hidden" name="flash" value="1">
> <input type="hidden" name="email" value="">
> <input type="hidden" name="messagetext" value="Prova da Claudio">
> <input type="hidden" name="memorizza" value="1">
> Numero di telefono</b></font></td>
> </tr>
> <tr align="center">
> <td><font size="2">0347/2376670</font></td>
> </tr>
> <tr>
> <td> <img src="/img/pixv2.gif" width="350" height="23"> </td>
> </tr>
> <tr align="center">
> <td><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Messaggio
> </font></b></td>
> </tr>
> <tr align="center">
> <td><font size="2">Prova da Claudio</font></td>
> </tr>
> <tr>
> <td> <img src="/img/pixv2.gif" width="350" height="23"> </td>
> </tr>
> <tr align="center">
> <td><b><font size="2">
> <input type="submit" name="indietro" value="Torna Indietro"
> onClick="history.back()">
> <input type="submit" name="Submit" value=" Invia ">
> </font></b></td>
> </tr>
> </form>
> </table>
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>