small loop question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
red wolf
Forum Newbie
Posts: 11
Joined: Sun Feb 19, 2012 4:38 am

small loop question

Post by red wolf »

Code: Select all

<form enctype="multipart/form-data" method="post" action="image_upload">
<p>Choose File To Upload Here:</p>
<br />
<input name="uploaded_file" type="file" /> <br />
<input type="submit" value="upload it" /> <br />
</form> 
this is my code
i want to add small button on the end of the page ("plus").
I need function that by clicking this plus it will open more field for uploading file.
somebody have any ideas please?
upload multiply images
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: small loop question

Post by Celauran »

Since PHP runs server side, you'll need to do this in JavaScript. Take a look at jQuery's append() function.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: small loop question

Post by Celauran »

sam88 wrote:HI,
you can use the PHP function of file "file_upload_move" for uploading the file into your data base.
Except that there's no such function and that wasn't the question.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: small loop question

Post by pickle »

Celauran wrote:
sam88 wrote:HI,
you can use the PHP function of file "file_upload_move" for uploading the file into your data base.
Except that there's no such function and that wasn't the question.
That was SPAM & has been dealt with.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
red wolf
Forum Newbie
Posts: 11
Joined: Sun Feb 19, 2012 4:38 am

Re: small loop question

Post by red wolf »

Thanks a lot!
Post Reply