send invite error

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

    send invite error

    hey guys when i try to send a email it say please fill in all fields but i do where are the error
    Code:
    <?php
    
    echo "<?xml version=\"1.0\"?>";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    
    include("config.php");
    include("core.php");
    $action = $_GET["action"];
    $sid = $_GET["sid"];
    $page = $_GET["page"];
    $who = $_GET["who"];
    
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?php
    echo "<head>";
    echo "<meta name=\"keywords\" content=\"email, invite, email sender, invite a friend\"/>";
    echo "<meta name=\"description\" content=\"email sender\"/>";
    echo "<meta name=\"robots\" content=\"send_invite, follow\"/>";
    echo "<meta name=\"revisit-after\" content=\"1 days\"/>";
    echo "<meta name=\"rating\" content=\"general\"/>";
    echo "<meta name=\"author\" content=\"Retrivewap\"/>";
    echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
    echo "</head>";
    echo "<title>Invite Friends</title>";
    echo "<body
    bgcolor=\"lightblue\">";
    
    echo "<p align=\"center\">";
    echo "<small>";
    
    $url = $_GET['url'];
    
    /* YOUR SITE AND SUBJECT INFORMATION GOES HERE! */
    
    $site = "http://retrivewap.co.za";
    $subject = "Invitation";
    
    /* AND YOUR MESSAGE INFORMATION GOES HERE */
    /* HERES MY EXAMPLE INVITE */
    $message = "
    this is not a spam email.
    it was sent to you from $from who's email is $fromemail
    they have invited you to join this site $site
    if you dont know the person who has sent this message or you do not
    wish to join please dis-regard this email
    ------------------------------------------
    if you constantly get messages from this person/site
    please feel free to go to the site and let the owner know and
    they will make sure it is stopped and you have no further problems..
    ";
    
    /* NOW TIME FOR THE MAIN PAGE */
    
    if ($url == "")
    {
    echo "<big><b><font color=\"white\">Send an invite for one of your friends to join our site:</b></big><br/><br/>";
    
    
    echo "<small>";
    echo "<form action=\"send_invite.php?url=result\" method=\"post\"><br/>";
    //echo "<form action=\"post\" href=\"send_invite.php?url=result\"><br/>";
    echo "<b>Your Friends Email</b><input name=\"email\" value=\"$email\"/><br/>";
    echo "<b>Your Email</b><input name=\"fromemail\" value=\"$fromemail\"/><br/>";
    echo "<b>Your Name</font></b><input name=\"from\" value=\"$from\"/><br/>";
    echo "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"Submit\"></form>";
    
    echo "---<br/><a href=\"index.php?action=main&amp;sid=$sid\">Back</a>";
    echo "<br/>---<br/>";
    echo "</small>";
    }
    
    /* NOW TIME FOR THE CONFIRMATION PAGE */
    
    if ($url == "result")
    {
    if ($email == "" OR $fromemail == "" OR $from == "")
    {
    echo "Please fill in All fields!!<br/>---<br/>";
    echo "<a href=\"send_invite.php\">« Back</a><br/>";
    }
    else
    {
    $headers = "From: $from <$fromemail>\n";
    $headers .= "Reply-To: <$fromemail>\n\n";
    
    mail ($email, $subject, $message, $headers);
    
    echo "Thanks $from! Your message has been sent to $email!<br/>";
    }
    echo "---<br/><a href=\"send_invite.php?action=main&amp;sid=$sid\">back</a>";
    echo "<br/>---<br/>";
    }
    
    echo "Invite More Friends- ".date(Y);
    echo "</small>";
    echo "</p>\n";
    echo "</body>\n";
    echo "</html>\n";
    ?>
    Last edited by riderz; 21.07.10, 13:35.
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    #2
    PHP Code:
    $email $_GET["email"];
    $fromemail $_GET["fromemail"];
    $from $_GET["from"]; 

    Comment


      #3
      Originally posted by something else View Post
      PHP Code:
      $email $_GET["email"];
      $fromemail $_GET["fromemail"];
      $from $_GET["from"]; 
      i think u mean

      PHP Code:
      $email $_POST["email"];
      $fromemail $_POST["fromemail"];
      $from $_POST["from"]; 
      Creator of
      Epix.Mobi

      Keep an Eye on us Big things coming soon!!!!
      Need something for your site hit me up here

      http://coding-talk.com/forum/main-fo...r-your-wapsite

      Comment


        #4
        lol yep

        Comment

        Working...
        X