473,395 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 3504
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

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

Similar topics

2
by: kevin | last post by:
hi there I am struggling with javascript. Can you please help me I've managed to get the get URL in flash to open a html that has the function that opens the Feedback form I want. I Couldn't...
22
by: Rich | last post by:
I am trying to create a site that will re-direct a user based on their OS. For this site I will need to send NT4 and 95 users to site A and 2000/XP users to site B. All others should be directed...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
3
by: plongo01 | last post by:
Form some reason I cannot get the flash form to align in the center of the page. Here is my code: <cfform format="flash" skin="haloblue"> <cfformgroup type="vertical"...
0
by: WillG | last post by:
Hi, I have spent most of the afternoon looking for what is probably a really simple solution. I am trying to add a checkbox to a form but I can't figure out how to do it. I basically want to add a...
0
crabpot8
by: crabpot8 | last post by:
hey guys, sorry for the short notice but this is pretty time-sensitive. I am working on a video service that asks for local files from a host computer. what we have set up is a site with a flash...
0
by: bbacarat | last post by:
Hi All, I attempting to use the following actionscript and php code to send from a flash form that I have created. However I have used a combo box from the built in flash 8 components and I'm...
3
by: jambonjamasb | last post by:
After months of work I have finally finished my Change Control management database. It looks flash all the filters work, all the reports work, importing from Xcel is automatic its...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.