I’m trying to customize this e-mail flash form:
[url]http://www.kirupa.com/developer/actionscript/flash_php_email.htm
Problem: I wanna add a text field called ‘confirm email’ and with a php if statement make a condition to check that the content of ’email’ field is the same than the ‘confirm email’ field.
I know how to add field in Flash and so on. Question is how to add if condition to PHP,
Mails from the flash file are sent using this php file that contains this code:
[code=php]<?php
$sendTo = “[email protected]”;
$subject = “My Flash site reply”;
$headers = “From: ” . $_POST[“firstName”] .” “. $_POST[“lastname”] . “<” . $_POST[“email”] .”>rn”;
$headers .= “Reply-To: ” . $_POST[“email”] . “rn”;
$headers .= “Return-path: ” . $_POST[“email”];
$message = $_POST[“message”];
mail($sendTo, $subject, $message, $headers);
?>
Thanks