-
Coding a submit button for 'contact me'
I'm very new to Flash and slightly floundering!
I've got the bones of a form for a 'contact me' page but have no idea how to enter code (or what code to use) for the 'submit' button. When the user clicks submit I would like a 'thank you' message to be displayed and an email (containing information entered in the form) sent to my email address.
If anyone can at least point me in the right direction I'd be really grateful!
-
Senior Member
Hi!
Check out this post
I think you might find what you're looking for there
Magnus
-
Can't Re-Member
try doing a search for email forms...... there are a number of php scripts in the forum for doing just that....
-
Thank you for that info, it's a big help. I followed the linked post and inserted the code (and created the php file) but I get the following error from the script:
**Error** Symbol=button, layer=Layer 2, frame=1:Line 12: Invalid key code
on(release,keyPress ""){
I'm sure it's something simple but still beyond me at the moment!
-
Hmmm, ok, I have got it so that no error is reported by changing the code to keyPress "<Enter>" however, when I run the document (either in preview or from the SWF) it does absolutely nothing.
I've checked that the php file is in the same folder as the SWF and it is. I will continue to search the forums but there's a lot to wade through so any quick pointers would be appreciated.
Thank you!
-
Senior Member
Yeah! I don't know if it'll work before you upload it to a server... I have tried it in test version myself without anything special happening.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|