Page 1 of 1

PHP begiiner question

Posted: Thu Jun 05, 2008 5:05 am
by triadmedia
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

Re: PHP begiiner question

Posted: Thu Jun 05, 2008 5:27 am
by Benjamin
What page does the flash form submit to?

On that page have you debugged the post data? ie:

Code: Select all

 
print_r($_POST);
 
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.

Re: PHP begiiner question

Posted: Thu Jun 05, 2008 6:09 am
by triadmedia
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.