Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Putting a Flash form contents into a text file using PHP

Status
Not open for further replies.

rossmcl

Programmer
Apr 18, 2000
128
I want to add a form to my Flash website, so a user can leave their email address.
I then want to pass this to a text file using PHP. (I do not have a database, so want to store email addresses in a text file.

How do I do this?

I guess I need to pass a variable from Flash when I hit my submit button into my PHP script, how do I do this?

(I am comfortable with what to do in PHP, I just need to know how to pass the variable in the email address form in Flash over to PHP

Any help much appreciated as always.
RM
 
You should use something like loadVariables

Code:
loadVariables("[URL unfurl="true"]http://myhost.com/mailer.php?mail=me@myhost.com",[/URL] this, "GET");

Its always worked for me! You can get dynamic by doing this:

Code:
loadVariables("[URL unfurl="true"]http://myhost.com/mailer.php?mail="[/URL] +
Code:
mailAddress
Code:
, this, "GET");

mailAddress is the variable in which the users email will be stored.

Keep Flashing,
FLASHfreak :)


FLASHfreak :)
- The Flash Experience
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top