Help with redirecting or cUrl Please.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Veronika Cabalo
    New Member
    • May 2011
    • 1

    Help with redirecting or cUrl Please.

    Hello, I need help with my form.

    I created send text message form but after submitting it opens up a new site where it gives out the session information and all the details. I would like to redirect it or just add something to the code so it wouldn't show that page. I was told about using curl too but I have no idea how to apply it. Here's the form:

    Code:
    <form action="https://api.tropo.com/1.0/sessions?action=create" method="Get" target="_none" >
    
    <b>Your Phone Number:</b> <input type="text" name="customerName" />
    
    <b>Message:</b> <input type="text" name="msg" />
    <input type="hidden" name="token" value="010fc32265db5444bbf84e92bd28f1887395ce3ade6cf69e1424d586add66b17bdc7c1d8061803f1c2319d66" />
    </br>
    <input type="submit" />
    
    </form>

    This is the php of the form which I have hosted on tropo

    Code:
    <?php
    call("+13213314633", array(
        "network" => "SMS"));
    say( "".$customerName." ".$msg."");
    _log("This guy knows: ".$customerName);
    
    
    ?>

    Can somebody please help me? Thank You
    Last edited by Niheel; May 24 '11, 02:51 AM.
  • MusoFreak200
    New Member
    • Oct 2009
    • 96

    #2
    hello veronika!

    i am not entirely sure on what it is that you are trying to do when using the following line of code in your html:

    Code:
    <form action="https://api.tropo.com/1.0/sessions?action=create" method="Get" target="_none" >
    but i think that what you may need to try is something like this:

    Code:
    <form action="text_message_sent.php" method="Get" target="_none" >
    hope that this helps you!
    if it does, dont forget to mark this reply as solved.

    Comment

    Working...