Forums
This topic is locked
Insert Record and Upload File in one page!
21 Dec 2001 06:39:49 A H posted:
I've finally done it!After Tim pointed out that the file field could be accessed by the variable $filefield_name. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> Thanks.
I've just made a single page that:
-inserts a record and uploads a file
-keeps the filename
-adds the directory (photos/) to the filename and then inserts the whole path into the database.
I've also made the update page that:
-updates the record (obviously)
-the user can upload another file to over-write the old record
-or if they don't upload another file, the same photo data is kept.
I'm very proud as this is my first real bit of if/else coding without any help.
If anyone wants it let me know and i'll post it here.
Cheers.
Replies
Replied 21 Dec 2001 11:31:15
21 Dec 2001 11:31:15 Tim Green replied:
Congratulations!
There's nothing better than the satisfaction of doing something like this for the first time.
Perhaps you would consider writing a tutorial? Explaining how you did it? I'm sure that many people would appreciate it <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
There's nothing better than the satisfaction of doing something like this for the first time.
Perhaps you would consider writing a tutorial? Explaining how you did it? I'm sure that many people would appreciate it <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 22 Dec 2001 02:38:24
22 Dec 2001 02:38:24 A H replied:
Sure! I don't know how dodgy the code is but it works <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 23 Dec 2001 00:11:43
23 Dec 2001 00:11:43 Stephen Bateman replied:
If you want to post the code I would certainly be interested of feel free to e-mail me a copy as well.
GT
GT
Replied 23 Dec 2001 07:14:38
23 Dec 2001 07:14:38 A H replied:
I will endevour to write a simple tutorial about this.
The code is at work and I'm on a break until Jan 2nd.
I'll send it out and upload it as soon as i get in.
Cheers.
The code is at work and I'm on a break until Jan 2nd.
I'll send it out and upload it as soon as i get in.
Cheers.
Replied 09 Sep 2006 18:54:08
09 Sep 2006 18:54:08 Rasmus Rönn replied:
<font face='Arial'>Hello Aaron,
you said in your post that you are willing to share your amazing script if someone´s interested in it. I would be wery interested in it if you only want to share it... You could for example send it to my e-mail
Thank you wery much!
</font id='Arial'>
you said in your post that you are willing to share your amazing script if someone´s interested in it. I would be wery interested in it if you only want to share it... You could for example send it to my e-mail
Thank you wery much!
</font id='Arial'>
Replied 13 Jul 2007 23:59:05
13 Jul 2007 23:59:05 Timothy Dempski replied:
I need to do the same thing, Ive been looking everywhere for bit of code, yours sounds perfect. I am also using dreamweaver and I need to make a simple image upload system.
Replied 18 Jul 2007 07:35:27
18 Jul 2007 07:35:27 Gabbianne Gray replied:
hmm, about 5.5 yrs since OP and he never posted the code. Anyone else know code for this?
G
G