469,289 Members | 2,211 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

help please form in flash not sending to php

12
Hi all any one please help, i have a buttin in flash 8 which gets a form contact.php but when it is pressed the emial ruturns empty as follows
1 the flash button
2 the form
3 the email outcome (empty)
the form
on (release) {
_parent.getURL("contact.php","_blank",
"GET");
_parent.name="";
_parent.phone="";
_parent.email="";
_parent.message="";
}
the contact.php (this has been cleared in the php department) it should work
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Contact</title>
</head>
<?php



$to = "derek@concrete-crusher.co.uk";
$subject = "Contact letter";
$message = "Hello! \n";
$message .= "Name: " . $_GET['name'] . "\n";
$message .= "Phone: " . $_GET['phone'] . "\n";
$message .= "E-mail: " . $_GET['email'] . "\n";
$message .= $_GET['message'] . "\n";
$headers = "From: " . $_GET['email'] . "\r\n" .
"Reply-To: " . $_GET['email'] . "\r\n" .
"X-Mailer: PHP/" . phpversion();

mail($to, $subject, $message, $headers);

?>
<html>
<body bgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>r

<body>
</body>
</html>

the emial outcome
Hello!
Name:
Phone:
E-mail:

no content any one help please

Best wishes Derek
Mar 5 '07 #1
6 3166
iam_clint
1,208 Expert 1GB
on (release) {
_parent.getURL("contact.php","_blank",
"GET");
_parent.name="";
_parent.phone="";
_parent.email="";
_parent.message="";
}


I would need to see your flash page but

_parent.name=""; will always = nothing you need to set it by using whatever was typed in the text field. aka _parent.name = _parent.name.text;
Mar 5 '07 #2
Derek
12
Hi thanx for getting back to me, i really have spent weeks on this form, what make it worse was i moved to a vurtual server at the same time so obviously my thoughts kept coming back to the problem being with the server.
Do you mean lke this

on (release) {
_parent.getURL("contact.php","_blank",
"GET");
_parent.name="name";
_parent.phone="phone";
_parent.email="email";
_parent.message="message";
}

the form is at www.concrete-crusher.co.uk
and is the contact form

once again thank you for your time
Best wishes Drek
Mar 6 '07 #3
iam_clint
1,208 Expert 1GB
on (release) {
_parent.getURL("contact.php","_blank",
"GET");
_parent.name="name";
_parent.phone="phone";
_parent.email="email";
_parent.message="message";
}

See when you do it like this


All your email is going to ever show is
name: name
phone: phone
email: email
message: message


You need to be pulling that information from your flash form which Only you would know the names of the form elements to pull the data from.
Mar 6 '07 #4
Derek
12
The problem i get when i do it like that is just the headings in the contact.php
and noughing from Flash. Do you mean the var in flash = the form
e.g. text input box = var:name?? i would be happy for you to have a copy of the .fla if i could send it to an email address
best wishes Derek
Mar 6 '07 #5
iam_clint
1,208 Expert 1GB
you may send it to me at iam_clint@hotmail.com

You need to be pulling the data into your form variables from the text boxes within the flash object
Mar 6 '07 #6
Derek
12
Hi Iam its on its way, I hope you can receive a 7MB file
Derek
Mar 7 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by kevin | last post: by
22 posts views Thread by Rich | last post: by
5 posts views Thread by Craig Keightley | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.