Skip to main content
Known Participant
November 7, 2007
Question

Submitting data with form

  • November 7, 2007
  • 8 replies
  • 451 views
So i created 2 text input feilds on one of my pages in a flash ducment. i have a button which i would like to submit all the entered data into an email and send it to an address as text. i have no clue how to right this out in action scripting so it will work properly. any help?? thanks

to see the site and the page im talking about click : here
click the trips button on the left and you can see the fields im talking about. thanks again
This topic has been closed for replies.

8 replies

kglad
Community Expert
Community Expert
November 8, 2007
you're welcome.
kglad
Community Expert
Community Expert
November 8, 2007
p.s. your site has working email now employing the user's default email program.
ihink909Author
Known Participant
November 8, 2007
alright ill go with that thanks for the help.
kglad
Community Expert
Community Expert
November 8, 2007
1st you need a php email script. search this forum; there have been several posted here recently.

2nd you need to upload it to your server and set its attributes or permissions so everyone can read and execute it.

3rd, work on your swf using the info clbeech mentioned to send data to your email script.
clbeech
Inspiring
November 7, 2007
you can access a php program doc by calling to a URL that points there, like:

http://www.myserver.com/email.php

you would then need to use LoadVars to send the information variables to the script when a user click a submit button. the php must be designed to gather the POSTed vars and then construct an email from them and send it. It's a little complicated, but not terrible.
ihink909Author
Known Participant
November 8, 2007
i set up my server-side script and i have all the information like the database name and host name for the database. and a Mysql site etc. But i am really confused as to what all this means. lol. now that i have this up, what would be my first step in createing the email text field to send the typed address to my php site, and then export that information in an email to me. or is this all too complicated to go over on a forum lol. thanks for any help regaurdless.

the site with the fields is here
click on signup on the left to see the field im talking about. thanks.
ihink909Author
Known Participant
November 7, 2007
how would i set up a server-side script from my hosting server? i have the directory address of my server but i im not sure how i would bring that up in the server to work
clbeech
Inspiring
November 7, 2007
yeah, if your going to gather information in a form in the Flash doc, to be emailed, you will need to use a server-side script to process and send, like php.

most servers support many different CGI languages, and you can put the file right in your root directory to acces it even.

However you can 'open' the users mail program and set up the email address, by calling to:

getURL('mail:ihink909@suchandsuch.com');
ihink909Author
Known Participant
November 7, 2007
im pretty sure im not using a server-side script or will need to. i guess i would be using the user's defualt email program although it would make more sense to do it the other way. i just dont think i have a place on the server im using to do it elsewise or maybe i do? thanks
kglad
Community Expert
Community Expert
November 7, 2007
are you using a server-side script to handle the email or the user's default (if they have one) email program?

as2 or as3