Hi ,
I have a Button & I want to choose a picture from my Computer & Then I send it to The Server
Thanks !
Printable View
Hi ,
I have a Button & I want to choose a picture from my Computer & Then I send it to The Server
Thanks !
And the problem is...?
on server...create a database which stores picture's path...not the picture..
then go to vb user picture box control and open dialog box control...
using open dialog box you will receive an picture's path...and store on
server's database...
finally while displaying picture load the path from your server's database..
it's very easy..and works...100%...
if you'll have further problem...i'll mail you the code..
Wow, hold on a second. The OP hasn't even asked a question, let alone mentioned any technical specifics.
Most likely the question is how to upload via a web form, but let's wait for the OP to clarify that before making suggestions.
oK I have 2 button
1/input type="file"
2/input type="submit"
in first one when i choose a file , i need to save the name of the file in the Table
& The File in The Server
See Handling File Uploads in the manual.
Hi Penagate ,
Can You look at This Thread , i have made a function to do that
http://www.vbforums.com/showthread.p...63#post3128963
Thanks
i am here now
You should be using move_uploaded_file(). This will improve security by ensuring the file was indeed uploaded.
... as you would have learnt had you read the article I linked to above.Quote:
Originally Posted by visualAd
Strange when i make The formulaire in a page.html
& To copie the file in a page.php It work Great
but if there are both .php doesnt work
show error : undefined index in NameofTheFile
i dont know why & its the same code
I don't understand what you are saying.
oK !
I have a page which had 2 button Send & Submit
Send : Choose a File From my Pc
submit : Copy The File & Send it to The Server
Now i am here
There are 2 page :
1: which has The Button & The Second which has The Event
How I Can get The Value of $donnee['NUMEROMAMMOTEST'] of page 1
to be Transfered on parameter to The Second page :rolleyes:
I still do not quite understand what you are doing here. I see no "Send" button. Only a submit button. I am not clear what you are doing and you screwed up the formatting on your previous post so it is also a nightmare trying to read it.
I gather that you want to move the uploaded file to a directory and then save its name / path in a database. Why can this not be done on one page? Why do you need another page to do it?
If you do want to do this then you should probably consider saving the name of the user in a session variable and retrieving that on the next page. Have a look at the PHP website.
Etes-vous français? La version française peut-être de vous aider. Je ne parle pas bien français.
Problem Solved !
All you need to do is put the databse update code in the same script as the copy code.
maybe but I was urgent so i do it with the second page
Thanks anyway
:confused: - and that wasn't the easier option.
Yes but I had a short time to do it !