curl post forms

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    curl post forms

    hey guys im trying to post forms without show the page after post it
    my code

    PHP Code:
    function sendsms($number$message)
    {
    $ch curl_init();
    curl_setopt($chCURLOPT_URL,"http://test.com");
    curl_setopt ($chCURLOPT_HEADER0); 
    curl_setopt($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_POSTFIELDS,"number={$number}&msg={$message}"); 
    $result curl_exec($ch); 
    curl_close($ch);


    #2
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    <?php unlink('World/Europe/Romania.country'); ?>

    Comment


      #3
      thank you i0nutzxp

      Comment

      Working...
      X