Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash form problem when receiving in email

Status
Not open for further replies.

cdiross

Technical User
Oct 23, 2006
290
US
The problem I'm having is I believe on the php end. My host is godaddy and they only support their own form mail script. Nothing else. It's called gdform.php. My form does send to my email, but all I get is:

ie:
recipient:

That's it
-----------------------------
Here's the form


Your Name:
Company:
Telephone:
E-mail:
Your Message:

reset submit
-----------------------------
Here's the "Submit" action script

on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}



on (release) {
for (i=1; i<_parent.fields_descriptions.length; i++) {
this[_parent.fields_descriptions[2]]=_parent[_parent.fields_descriptions[1]];
_parent.reset_txt(_parent["t"+i], _parent.fields_descriptions[1], _parent.fields_descriptions[2]);
}
this.recipient=_parent.rec;
i=undefined;
getURL("gdform.php"+_parent.serv, "_blank", "POST");

}



------------------------------
Here's the godaddy gdform.php

<?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_HOST"]."/$landing_page");
} else {
header("Location: ["HTTP_HOST"]."/");
}


?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top