PHP newbie
Hi there people this is my first as you will probably guess by the stupidity of my question.
I am trying to use a flash php form on my website but cant get anything php to work, I submit the form but nothing happens.
I upload the php in ascii mode with filezilla but i have also tried uploading with dreamweaver still no joy
the form can be downloaded athttp://www.investment-castings.co.uk/form-download.html
if any one wants to look at it.
I have done a php test to make sure it is installed and all is ok
the actual live form is at http://www.investment-castings.co.uk/fl ... /form.html
Please help me
cheers
PHP begiiner question
Moderator: General Moderators
Re: PHP begiiner question
What page does the flash form submit to?
On that page have you debugged the post data? ie:
You could also write it to a file to verify that data is being posted.
You'll have better luck getting answers here if you post your code using code tags and explain what you have tried.
On that page have you debugged the post data? ie:
Code: Select all
print_r($_POST);
You'll have better luck getting answers here if you post your code using code tags and explain what you have tried.
-
triadmedia
- Forum Newbie
- Posts: 2
- Joined: Thu Jun 05, 2008 4:54 am
Re: PHP begiiner question
The flash submits to email.php and all files including the HTML, FLA, SWF and PHP are in the same folder
here is my php script
<?php
$sendTo = "design@triaduk.co.uk";
$subject = "flash form reply";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
Cheers for your time.
here is my php script
<?php
$sendTo = "design@triaduk.co.uk";
$subject = "flash form reply";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$message = $_POST["message"];
mail($sendTo, $subject, $message, $headers);
?>
Cheers for your time.