Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / July 2007



Tip: Looking for answers? Try searching our database.

Contact Page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
stary_eyes47 - 31 Jul 2007 00:48 GMT
Hi,

I am creating a contact page for a my website and I am having a bit of
trouble. I have created the form in flash, and am using a php file to send the
email to myself. The form works OK, but when it deliver's it to my inbox, I am
getting all of this jibberish with the email Example:

Name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14"
COLOR="#242868" LETTERSPACING="0" KERNING="0">Test</FONT></P></TEXTFORMAT>
Phone: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14"
COLOR="#242868" LETTERSPACING="0" KERNING="0">111111111</FONT></P></TEXTFORMAT>
Email: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14"
COLOR="#242868" LETTERSPACING="0"
KERNING="0">someone@something.com</FONT></P></TEXTFORMAT>
Message: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14"
COLOR="#242868" LETTERSPACING="0" KERNING="0">this is a
test</FONT></P></TEXTFORMAT>
_childCounter: 1
focus_mc: _level0.depthChild0

I was wondering if anyone knew a way that I could get it to send clean emails
that I could read? My input boxes are named Name, Phone, Email and Message. The
script I have used on my submit button is:

on (release) {
if (Name eq "" or Phone eq "" or Email eq "" or Message eq "") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(191);
}
}

And the PHP file is:

<?php

if (count($_POST)>0) $response = $_POST;
else $response = $_GET;
$Name = $HTTP_POST_VARS['Name'];
$Phone = $HTTP_POST_VARS['Phone'];
$Email = $HTTP_POST_VARS['Email'];
$Enquiry = $HTTP_POST_VARS['Enquiry'];
foreach ($response as $key => $val)
{
$msg .= "$key: $val";
$msg .= "\r\n";
}
$msg = stripslashes($msg);
mail("myemail@myemail.com", "Website Enquiry", $msg);
?>

Any help would be great as this is driving me insane!!![h]
redbarn03 - 31 Jul 2007 01:39 GMT
I think it's probably in your php code. I use something like this.

$Name = $_POST["Name"];
$Email = $_POST["Email"];
$Phone = $_POST["Phone"];

$ToEmail = "myemail@ myemail.com";
$ToSubject = "Websit Inquiry";

$EmailHeader="This person has submitted this feedback\n\n\n";
$EmailBody = "Name: $Name\nEmail: $Email\nTelephone: $Phone\n";

$Message = $EmailHeader.$EmailBody;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName."
<".$Email.">");
stary_eyes47 - 31 Jul 2007 07:53 GMT
Thanks for that.  I tried it but it still gives me the same jibberish in the email.  I am so frustrated!!!  I don't know what to do.
redbarn03 - 31 Jul 2007 15:03 GMT
In your Flash file do you have your variables set as input text? Mine are set as input text with an instance name and variable name. For example: the name field is Name_txt and the variable is Name.
SymTsb - 31 Jul 2007 18:41 GMT
check to see if you have the render html check box on.  If you want to only send plain text, then the input box should not have htmlText set to true.
dzedward - 31 Jul 2007 19:13 GMT
also, make sure Auto Kern is off on the text fields, if you are on a Mac, and
it is grayed out and unchecked, then change the field to static, uncheck Auto
Kern, then turn back to input.  I recently had this problem, and there is some
bug with Macs.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.