an issue with an script.........

Discussion in 'HTML & Website Design' started by thelaa rox, Mar 12, 2009.

  1. #1
    below is a free sms script for a network operator in Srilanka.
    (of cource im from Srilanka).
    Im developing an site in Synthasite and i wanna use this but they dont allow me to upload PHP files.so i uploaded the php file to "007sites.com" and gave the path to there.
    Now the issue is when i send sms everything seems to be working fine and even the "Message send!!" is appearing.but it just doesnt work !! :eek:
    What is wrong ? what should i do?
    (i know the script is fine and used by many people)

    Thanx in advance !!
    here is the HTML part and the script !

    Client side
    <html>
    <head>
    <title>root_j@hotmail.com</title>
    </head>
    <body>
    <form method="POST" action="send.php">
    <p>Number :-<input type="text" name="num" size="20"> Type online the Mobitel
    number without 0 eg:- 714XXXXXX<br>
    email:-<input type="text" name="email" size="20"><br>
    Message<textarea rows="2" name="mess" cols="20"></textarea></p>
    <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>
    </body>
    </html>



    server Side save it as send.php

    <?php
    $num=$_POST['num'];
    $p_email=$_POST['email'];
    $p_mess=$_POST['mess'];

    $sendem = "94".$num."@sms.mobitel.lk";

    $to = $sendem;
    $subject = $p_email;
    $message = $p_mess;
    $from = $p_email;
    $headers = "From: $from";
    mail($to,$subject,$message,$headers);
    echo "Message send!!";
    echo "<br>";
    ?>
     
    thelaa rox, Mar 12, 2009 IP