PHP begiiner question

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
triadmedia
Forum Newbie
Posts: 2
Joined: Thu Jun 05, 2008 4:54 am

PHP begiiner question

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: PHP begiiner question

Post 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.
triadmedia
Forum Newbie
Posts: 2
Joined: Thu Jun 05, 2008 4:54 am

Re: PHP begiiner question

Post 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.
Post Reply