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
red wolf
Forum Newbie
Posts: 11 Joined: Sun Feb 19, 2012 4:38 am
Post
by red wolf » Thu Apr 05, 2012 4:21 am
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
Celauran
Moderator
Posts: 6427 Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada
Post
by Celauran » Thu Apr 05, 2012 5:29 am
Since PHP runs server side, you'll need to do this in JavaScript. Take a look at jQuery's
append() function.
Celauran
Moderator
Posts: 6427 Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada
Post
by Celauran » Thu Apr 05, 2012 6:29 am
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.
pickle
Briney Mod
Posts: 6445 Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:
Post
by pickle » Thu Apr 05, 2012 11:09 am
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
Post
by red wolf » Thu Apr 05, 2012 4:37 pm
Thanks a lot!