Skip to main content
Participant
January 25, 2010
Question

PHP files and Flash contact form

  • January 25, 2010
  • 1 reply
  • 513 views

Hello,

I am creating a website in flash CS4 and I made a contact form and when I test the site out, I can type and click the submit button, so everything is fine there but it doesn't go to anything. Now I know I need a code to tell the contact form where to go, but I can't find one that works, or I may be doing something wrong.  I also have been reading about PHP but I am not sure what that is. I found a site that said to put this code in the actions panel.

on(release){

    getURL("http://www.mail.menaceaudio.com", "", "POST");

}

The www.mail.menaceaudio.com is the site for the companies email.

So when I test it out this error comes up:

1087: Syntax error: extra characters found after end of program.

This topic has been closed for replies.

1 reply

January 25, 2010

The code you show is AS2, not AS3. Try searching for 'as3 form php' and you should find plenty of info.

PHP is a server-side scripting language. You put PHP files on your server and can then call them from Flash...

Participant
January 25, 2010

Oh I didn't realize it was for AS2. Thanks I'll look for AS3.  Do I have to do anything with the PHP like create a code or anything?

January 25, 2010

You need to do some reading about PHP I think... PHP is just another programming language - but it runs server side. I find it nice because its syntax is a bit like JavaScript and a bit like ActionScript... good luck.