Collecting Information!

I need some advice from an experience developer.

I need to create a form whereby people enter there name, number and email address and then press a submit button.

I need this information stored on a database where I can access it at a later date or sent as an e-mail every time the buton is pressed.

The information will eventually be used to send out E-mails to members.

Im quite new to this flash game but as far as i know the first option is rather tricky.

Can anyone help me please???
:frowning:

I’d like to know the answer too :crazy:

Well…

First off… To be able to do this you need to have acces to a PHP-enabled web host… Flash cna not directly make connections to databases and therefore needs php to send out data… If you have one of these…

GO take a look in the Flash MX or FLash Action sections of the tutorial listing here at Kirupa.com… It should have someting about mySQL and Flash and php… Read up about that…

Me personally… I wouldn’t even bother making a database for something like that… I would use a text file and manage it from there… But that’s just me… And I love me textFiles…

lol

Basically you would then take text inputted in and add it on to the end of a qury string and send it to the php page…

http://www.phpsampler.com/processData.php?name=Marz& number=576849&[email protected]

Don’t click this… it won’t give you anything… lmao

playamarz, do you have a tut for doing it your .TXT way then?
I’d like to see it if you do have one.

I have this one that collects the data and dumps it into an html file on my server. I want to be able to access it via a web browser and not ftp.

I have this one that collects the data and dumps it into an html file on my server.

I want to be able to access it via a web browser and not ftp.

Well… I don’t have any tut’s… I just kind-a explain myself roughly through these dang posts until my site gets completely done… Which will probably be never lmao… But anyways…

I just send data through Flash MX to PHP or just Use PHP alone… When the php collects the data… It appends the data like such in the text file… (believe I had 3 people in this already)


Marz
758695
[email][email protected][/email]
Marz2
483372
[email][email protected][/email]
MarzFriend
857336
[email][email protected][/email]

That’s basically how I’d put this together in the text file…

Then in my php page I would load the textfile in and with a for loop… I’d load each data object in 3 array objects… name[], number[], email[]. Now… The only time that you would call this though… Is if you sent out the demand in the FLash MX page of yours… Just send out three demands to loadVariables… And then you just change around the data objects inside of the Flash page…

Oh wow… Is that enough stuff for you?!
lol… it’s a pain I know… If you relly want me to give you code examples from the Flash MX or PHP Scripting sides of these I can… But you’ll have to give me a night or two…

PEace

Thanx man. Yeah I would like to know more if possible. :slight_smile:

You can post it here or mail me.

Thanx again man

YEah… I’ll get around to it tomorrow night… I’m going to bed now… Been sniffing around paint fumes and paint thinner all day… Phew… I’ve got a headache… But anyways… Yeha I’ll work with you tomorrow night… I’ve got it figured out in my head better to explain it as well.

Peace

nice one.

Thanx man

yawwwwn

Man… i forgot I had this still… You guys gotta keep up with me and keep telling me about these… I’d do it now But I think I’m crashing soon lmao