/    Sign up×
Community /Pin to ProfileBookmark

flash mail form issue (PHP)

I am working with a flash template (I hate templates!!). I had no choice on this one. Anyways, there is a contact section and I am trying to make it work via PHP. This is the actionscript for the submit button:

onClipEvent(load){this.t.v = _root.contacts_txt9;}
on (rollOver) {this.gotoAndPlay(“s1”);}
on (rollOut) {this.gotoAndPlay(“s2”);}
on(release){
_
parent.loadVariables(“mail.php”, “POST”);
_parent._parent.gotoAndStop(2);
}

when I click on the contact form “Your Name” text field (it is input text), it has a name of t1. For the “Your Email” it has t3 and for “message” it has t4.

I am not sure how to alter the PHP to correctly make this work.

The URL for my .fla is [url]http://kmkwebdevelopment.com/homeadvisor/homeadvisor2copy.fla[/url]

and for the PHP, this is what I have so far.

<?php

$sendTo = “[email protected]“;
$subject = “My Flash site reply”;

$headers = “From: ” . $_POST[“t1″] .” ” . $_POST[“t3″] .”>rn”;

$headers .= “Reply-To: ” . $_POST[“email”] . “rn”;

$headers .= “Return-path: ” . $_POST[“email”];

$message = $_POST[“t4”];

mail($sendTo, $subject, $message, $headers);

?>

Thanks,
Kris.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @Captainkewl spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...