I am getting pretty aggitated! I’ve posted this on every forum I can think of this week codewalkers, kirupa, flashaction, sephiroth etc one would think with all the guru’s out there SOMEONE would respond!! PLEASE Im getting desparate!
I bought a template and it has an advanced email contact form both .ASP and PHP I dont care which one I use if someone could kindly help me. I’ve searched everything I could find on email forms and none of them help me with this form. I did find something on codewalkers.com but the only thing said about it was a portion of the script opening yourself up to spammers… I REALLY DONT CARE! I just want this working! Please Help!
The btn on the email form has this script
[INDENT]
on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release) {
var your_name_descr = _parent.your_name_descr;
var your_email_descr = _parent.your_email_descr;
var field_1_descr = _parent.field_1_descr;
var field_2_descr = _parent.field_2_descr;
var field_3_descr = _parent.field_3_descr;
var field_4_descr = _parent.field_4_descr;
var field_5_descr = _parent.field_5_descr;
var field_6_descr = _parent.field_6_descr;
var field_7_descr = _parent.field_7_descr;
var message_descr = _parent.message_descr;
var message = _parent.message;
var field_1 = _parent.field_1;
var field_2 = _parent.field_2;
var field_3 = _parent.field_3;
var field_4 = _parent.field_4;
var field_5 = _parent.field_5;
var field_6 = _parent.field_6;
var field_7 = _parent.field_7;
var your_email = _parent.your_email;
var your_name = _parent.your_name;
getURL("contact."+_parent.serv.text, "_blank", "POST");
i = 1;
while (this["field_"+i]) {
_parent["field_"+i] = "";
i++;
}
_parent.reset_txt("t1", "your_name", "Your Name:");
_parent.reset_txt("t2", "your_email", "Your Company:");
_parent.reset_txt("t4", "message", "Message:");
}
[/INDENT]
The PHP file has this and I have NOT a clue what to edit!
[INDENT]
<?
Print_r ($_REQUEST);
Error_Reporting(E_ALL & ~E_NOTICE);
$subject="from".$_REQUEST['Your_Name'];
$headers= "From:".$_REQUEST['Your_Email']."
";
$headers.='Content-type: text/html; charset=iso-8859-1';
$i=1;
$message='';
while ($_REQUEST['field_'.$i.'_descr']) {
$message.="<strong>".$_REQUEST['field_'.$i.'_descr']."</strong> ".$_REQUEST['field_'.$i]."<br>";
$i++;
}
$message.="<br>".$_REQUEST['message']."<br><br>";
mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300);
// window.close()
</script>
[/INDENT]The .ASP active server form has this code and I haven’t a clue what to edit
[INDENT]
<%
for i=1 to 7
message=message + "<strong>"&Request("field_"&i&"_descr")&"</strong> "&Request("field_"&i)&"<br>"
next
message=message + Request("message")
smtpServer = "your_smtp_server"
smtpPort = 25
name = Request("Your_Name")
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "from " & name
myMail.From = Request("Your_Email")
myMail.To = Request("recipient")
myMail.HTMLBody = "<html><head><title>Contact letter</title></head><body><br>" & message & "</body></html>"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort
myMail.Configuration.Fields.Update
myMail.Send
%>
[/INDENT]Now either way this goes, I know what my smtp server is, I just wont edit it until I know exactly what I’m dealing with. At the moment, when I test the email form in the movie, it throws up a download for the PHP form thats in the folder.
I might add this is obviously an advanced email set up, I haven’t seen anything exactly like this on the web as far as I know its an unforgivable sin to sell this and I dont know enough about email forms to break apart a common one let alone an original form. I would REALLY appreciate someone helping me out!!! :hr: