A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Coding a submit button for 'contact me'

  1. #1
    Junior Member
    Join Date
    Jul 2005
    Posts
    4

    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!

  2. #2
    Senior Member MagnusVS's Avatar
    Join Date
    May 2005
    Location
    Oslo, Norway
    Posts
    764
    Hi!
    Check out this post
    I think you might find what you're looking for there

    Magnus

  3. #3
    Can't Re-Member madzigian's Avatar
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    2,662
    try doing a search for email forms...... there are a number of php scripts in the forum for doing just that....

  4. #4
    Junior Member
    Join Date
    Jul 2005
    Posts
    4
    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!

  5. #5
    Junior Member
    Join Date
    Jul 2005
    Posts
    4
    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!

  6. #6
    Senior Member MagnusVS's Avatar
    Join Date
    May 2005
    Location
    Oslo, Norway
    Posts
    764
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center