ok first off i know its not good to store an image in a database
but my problem is
the people that are going to be uploading probably have no idea what ftp is

i found a tutorial for uploading to a database but i hate it
it makes it impossible for me to send any other data to the same table plus storing bianary slows everything down

do any of you gurus know how to have a form where i can upload a picture to a certain directory then it auto forwards to the next page and i can add all the information i want and the <img src='$picture url'> is automaticly forwarded to the form

please help i dont want to put bianary in mysql

    Hi,

    you could either use sessions to store the path to the image and read out that value on the next page or you could redirect to the next page with a header("Location: nextpage.php?img=".urlencode($imagepath));

    Using the session would be cleaner but might be some kind if overkill if you don't use sessions in your existing application.

      umm but still how do i upload the file to a certain directory

        Originally posted by tsinka
        Hi,

        you could either use sessions to store the path to the image and read out that value on the next page or you could redirect to the next page with a header("Location: nextpage.php?img=".urlencode($imagepath));

        Using the session would be cleaner but might be some kind if overkill if you don't use sessions in your existing application.

        can you exsplain to me exactly what that is you have got there and how it works

          Write a Reply...