Processing in an array?

See all posts See thread Reply

Re: Processing in an array? new!
by Tim Gavin, 16 years, 4 months ago
Thank you.

The number of upload fields is the rub: it can be as many as the user wants. In my first post, I pasted the actual INSERT query. As you can see it's in a for() loop, iterating every article that's in the form. Each new article is added dynamically via js. So, for each article POSTed there can be an image.

I was able to get your example to work, just couldn't get the value of the filename into the db.

I'll be happy to provide a donation for your help. If you'd rather have me email something to you, which address should I send it to?

Thanks again!Reply
Re: Processing in an array? new!
by colin, 16 years, 4 months ago
So I assume that you have one form, in which users can add new lines via Javascript. Then, you process the form, which may have x articles, each composed of one healine, a text and one image, and you want to store them all in a database. Is that right?

You can send me the code that you already have at colin@verot.net

As for the donations, which are always greatly appreciated, you can have more information on this page. Thank you.Reply