1 Reply Latest reply on Mar 17, 2008 6:49 AM by SujitG

    Server side PHP email script with GoDaddy

      I need some help with PHP email script that i received from GoDaddy since they are hosting my web site.
      GoDaddy send me this php script and told me to use this to send emails.
      I'm new to flex and i need some help on how you do this in FLEX?

      Here is the script

      $request_method = $_SERVER["REQUEST_METHOD"];
      if($request_method == "GET"){
      $query_vars = $_GET;
      } elseif ($request_method == "POST"){
      $query_vars = $_POST;
      $t = date("U");

      $file = $_SERVER['DOCUMENT_ROOT'] . "/../data/gdform_" . $t;
      $fp = fopen($file,"w");
      while (list ($key, $val) = each ($query_vars)) {
      fputs($fp,"<GDFORM_VARIABLE NAME=$key START>\n");
      fputs($fp,"<GDFORM_VARIABLE NAME=$key END>\n");
      if ($key == "redirect") { $landing_page = $val;}
      if ($landing_page != ""){
      header("Location: http://".$_SERVER["HTTP_HOST"
      } else {
      header("Location: http://".$_SERVER["HTTP_HOST"


      Thank you