Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now