Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-01-28, 03:21 PM   #1
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
HTML:
Code:
<form method="post" enctype="multipart/form-data">
<input name="uploadedfile" type="file">
<input type="submit" name="submit" value="Upload">
</form>
Some php code to deal with the input:
Code:
    if (!(file_exists($_FILES['uploadedfile']['tmp_name']))) {
      $error .= "Please try again, I didn't get a file. ";
    } else {
       // do something with the file
    }
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2007-01-28, 04:04 PM   #2
BigVikingAl
They have the Internet on computers, now?
 
Join Date: Apr 2005
Posts: 148
Howling Wulf,

I have tried your input field and submitted a form but the resulting output gives me a local file that I can't open.

ie: E:\\My Pictures\\2006-03-23, Rumbelinas II\\Rumbelinas II 001.jpg

since this file is on my computer only how could I open an image if somebody submitted one to me and it was located on their local harddrive, not a server?

cd34,

I do not understeand where I would put your code(s) in my form
__________________
MrPornReview/throat-gaggers
In depth deepthroat site reviews
BigVikingAl is offline   Reply With Quote
Old 2007-01-28, 04:28 PM   #3
HowlingWulf
Me fail English? That's unpossible!
 
HowlingWulf's Avatar
 
Join Date: Dec 2003
Location: FL
Posts: 1,381
Send a message via ICQ to HowlingWulf
The input field is put between the <form> tags, and you'll need code to handle the uploaded file. cd34's post has full details you need.
__________________
WordPress Porn directory theme => Maddos
Create a Porn Tube => Video Pornster
HowlingWulf is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:13 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc