Forum Moderators: coopster

Message Too Old, No Replies

upload image

         

ft109

2:07 pm on Jul 31, 2008 (gmt 0)

10+ Year Member



how can we upload images into the html page using php?

d40sithui

2:51 pm on Jul 31, 2008 (gmt 0)

10+ Year Member



this process is kind of involved and requires you to be pretty familiar with PHP (for some reason, I got a vibe from your question that you may be new to PHP).
anyway, heres what you will need.
1) image table of some sort(database)
2) html form
3) action script

basically, what you will do is first create a form that allows users to submit the image(s). the action script will verify the image, and will store the image permanently on the server. to track all the images being uploaded, you will have to enter its information in the database (likely you'd need an imageId, name, URL as fields). as you store the file on the server, insert its information in the databse so you can retrieve it later (to display or other purposes).

ft109

3:02 pm on Jul 31, 2008 (gmt 0)

10+ Year Member



yes i m new to php.
can you give the link where i can learn how to upload image?

d40sithui

4:36 pm on Jul 31, 2008 (gmt 0)

10+ Year Member



here is a good tutorial from a well known website that i sometimes use::
[htmlgoodies.com...]
Here is the core documentation on handing file uploads::
[us2.php.net...]
And finally I found this one searching google. this one actualy looks like it can be used as a template design for your project::
<snip>

[edited by: eelixduppy at 7:15 pm (utc) on July 31, 2008]
[edit reason] removed url [/edit]