Image

Imagelalindsey wrote in Imagephp 😟cold

PHP Help!

Ok, I am writing my first PHP script. Basically, it's a form processing script with a twist . . .

Ok, I run a free template site, and I want to be able to track/semi-track the people who are downloading my templates. For example, I am going to have a name field, email, and url field. Then a drop-down menu that has the list of templates. Each template will be number-coded, coinciding with the same number in my mySQL database which has stored the url to the .zip file of the template.

My question is, how do I process this?

I get how to write the php for the name, email and url feild, and I can figure out how to write the form to email the results to me. My dilema is actually figuring out how take the results of what the user choses from the drop down menu, and processing it through my database to the link to the appropiate zip file so it will download.

Would I use an array?

Any help, directs to tutorials on the same topic, anything, would be useful. I have several books, but I can't find anything in them about processing the drop downs.

Thanks for any help,
Lindsey