Jump to content


Flash Form Question


  • You cannot reply to this topic
No replies to this topic

#1 igotregistered

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 05 January 2008 - 09:59 AM

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[i][2]]=_parent[_parent.fields_descriptions[i][1
]];
_parent.reset_txt(_parent["t"+i], _parent.fields_descriptions[i][1], _parent.fields_descriptions[i][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://".$_SERVER["HTTP_HOS...36;landing_page");
} else {
header("Location: http://".$_SERVER["HTTP_HOST"]."/");
}


?>





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users