Jump to content


Photo

Using PHP with Flash PLEASE HELP


  • Please log in to reply
1 reply to this topic

#1 mamaluke

mamaluke
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 16 May 2006 - 06:14 AM

Ok, this might get confusing sorry if I lose you lol.

I currently use a formmail service from the website www.response-o-matic.com

What I'm looking to do is make a register thing where you submit your email and username you would like in a flash movie and then I want it to send the results to my email just like your typical formmail form. The only problem is I've read tons and tons of tutorials which show you how to do this with a simple formmail.php which you run from your own website but it doesnt show how to do this if you have to specify the ID of your response-o-matic account like I have to


for example

my code when making a simple html formmail is

<form enctype="multipart/form-data" method="POST" action="http://www.response-....com/mail.php">
<input type="hidden" name="acctid" value="yve05hjo1yyvudkv">
<input type="hidden" name="formid" value="68013">

(see the ACCID that is for my response o matic account to know where to send the results to )

now if i used a normal .php script I wouldnt have to put the account id and then I could follow the steps on how to put it in a flash movie.

So what I did all day was look everywheres on how to use PHP scripts and how to update one to work with my settings and find free php host. I figured everything out but problem now is im getting errors saying the refferal was incoorect or something so It couldnt send the email? so im guessing you need your own domain which i do not have...

I know this is confusing but if somone understands me please help i just need to get my response-o-matic account in flash some how...

Thanks

#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 16 May 2006 - 11:54 AM

i'm not entirely sure what you are asking, but it seems that you are asking how to pass a variable from php to flash and visa versa... ?

to get a variable from php to flash you would first do this: $_GET['blah'] = 'blahblah'; and then in flash you would use the actionscript loadvars function. To get a variable from flash to php you would use the actionscript sendvars function and then you can retrieve it in php with $_GET['blah']

now obviously using the $_GET array to pass info back and forth is not very secure, but if you are using flash mx or older, that's the only option you have. In flash 2004 there is a rather lengthy coding method for creating an rss feed, and in flash 8 they actually made some objects for doing it, so you might want to google that.

I'd help you out more on all that, but I'm afraid I don't know too much about actionscript. I know a few basic things but I never really got into it.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users