Skip to main content
Participant
September 26, 2008
Question

Help getting Flash to send data to php contact form please...

  • September 26, 2008
  • 2 replies
  • 436 views
I am struggling to get Kirupa's php contact form tutorial to work within a client's website.

Kirupa's source files work perfectly when I upload them to my server - but when I insert the form into my flash website - I am unable to receive the contact email at all.

The problem must be within the .fla file because I have not altered the php (except to change the email address to send to my email) The php file worked fine with the source .fla form. I basically copied the symbols form the source form into the .fla - then double checked the var_names and everything shoudl be good to go.

I am using Flash CS3 (but publishing for AS2) I have double checked all my input fields are named correctly with var_names that match the php code. The form fields have been created as a movieclip named "form" and the following action script attached:

onClipEvent(data){
// show welcome screen
_root.nextFrame();
}

the send button has the following code attached:

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
}

Basically everything is identical to Kirupa's tutorial source files (which I tested with success) except it has been inserted into a flash website timeline - I also double checked there was no conflicting AS code anywhere else in the file.

Still, no email contact is received at all.
Anyone have a clue what I am missing???

Much appreciated!
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
September 27, 2008
does the php form need anything (like an email address) to work? if so, hardcode that part during testing. if not, make sure your php file is in the same directory as your embedding html file.
Inspiring
September 27, 2008
maybe your email.php has an error, make sure that the $word is identical in both scripts e.g. if on the form it says emailaddress is the name for the input field, make sure that the .php has that identically.
Hope that helps.
poprobotAuthor
Participant
September 27, 2008
Thanks for your reply - but no, that is not the case.

As I mentioned - the php file worked fine with the source code - but after inserting the source AS into my.fla - the site won't connect to the php. I double and triple checked all the var names.

back to the drawing board...