I have the flash script that has worked perfectly with an ASP form... but now the site has moved to a windows server and i think the script may have to be adjusted.
One thing I did in the flash form was change "mail.asp" for the script inside flash..
here is the command script we created in flash:
on (release, keyPress "<Enter>") {
nextFrame();
Body = text;
from = text;
loadVariablesNum("jmail.php", 0, "POST");
}
here is the php i need to adjust: "gdform.php"
I would like modify it so it emails from this server: smtp.secureserver.net
here is the php i need to adjust:
<?php
$request_method = $_SERVER["REQUEST_METHOD"];
if($request_method == "GET"){
$query_vars = $_GET;
} elseif ($request_method == "POST"){
$query_vars = $_POST;
}
reset($query_vars);
$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,"$val\n");
fputs($fp,"<GDFORM_VARIABLE NAME=$key END>\n");
if ($key == "redirect") { $landing_page = $val;}
}
fclose($fp);
if ($landing_page != ""){
header("Location: http://".$_SERVER["HTTP_HOST"]."/$landing_page");
} else {
header("Location: http://".$_SERVER["HTTP_HOST"]."/");
}
?>
Edited by Emil, 04 May 2011 - 02:37 PM.


Sign In
Create Account


Back to top









