Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP files and Flash contact form

New Here ,
Jan 25, 2010 Jan 25, 2010

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.

TOPICS
ActionScript
496
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 25, 2010 Jan 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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2010 Jan 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 25, 2010 Jan 25, 2010
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines