Home » Developer & Programmer » Forms » send sms from smsCaster from website on local host
send sms from smsCaster from website on local host [message #668809] Thu, 15 March 2018 05:05
s_abrar
Messages: 1
Registered: March 2018
Junior Member
Can anybody help me out as i am very much new to programming


/// this is the code to send sms with smsCaster
<?php
if(isset($_POST['submit'])) {
$path = "file:///C|/Program Files/SMSCaster/smscaster.exe -compose -start -exit';";
$msgid = $_POST['MSGID'];
$msgnum = $_POST['MSG_NUM'];
$msgtxt = $_POST['MSG_TXT'];

host($path|| '-compose'||$msgnum || $msgtxt || '-start -exit');

}
?>

//// this is the form filled by user
<form action="index.php" method="post" name="form1">

<label for="Msgid">Msgid</label>
<input type="text" name="MSGID" /><br />

<label for="MsgNum">Msg Num</label>
<input type="text" name="MSG_NUM" /><br />

<label for="MsgTxt">Msg Txt</label>
<input type="text" name="MSG_TXT" /><br />

<input type="submit" name="submit" />

</form>

complete page is attached:
Previous Topic: Asking for search algorithm
Next Topic: Pick session IP address in Web mode
Goto Forum:
  


Current Time: Fri Mar 29 07:33:56 CDT 2024