cle13 Posted August 17, 2006 Share Posted August 17, 2006 Hello people. Could anyone help me with code for uploading documents to a database and viewing them after uploading them? I would like to include a part in my site where people upload cvs and they are able to view them after uploading. Thanx. Link to comment https://forums.phpfreaks.com/topic/17809-uploading-and-viewing/ Share on other sites More sharing options...
zq29 Posted August 17, 2006 Share Posted August 17, 2006 I dont understand 100%. Are you asking for someone to provide you with pre-written code, or are you asking for assistance on a script your are currently working on? I hope it's the latter, if not, post in our freelancing forum or check out a site like hotscripts.com or something. Link to comment https://forums.phpfreaks.com/topic/17809-uploading-and-viewing/#findComment-76080 Share on other sites More sharing options...
cle13 Posted August 17, 2006 Author Share Posted August 17, 2006 The code Im using is here.Uloading[code]function upload(){$upload="<br><center><strong>Upload Your Curriculum Vitae</strong><hr color=gray><br><form action=?process=upload method=post enctype=multipart/form-data name=uploadform> <input type=hidden name=MAX_FILE_SIZE value=2000000> <input name=userfile type=file id=userfile><br><br> <input name=upload type=submit value=Upload style='border:solid 1 gray;'></form></center>";return $upload;}[/code]viewing[code]function upload(){$upload="<br><center><strong>Upload Your Curriculum Vitae</strong><hr color=gray><br><form action=?process=upload method=post enctype=multipart/form-data name=uploadform> <input type=hidden name=MAX_FILE_SIZE value=2000000> <input name=userfile type=file id=userfile><br><br> <input name=upload type=submit value=Upload style='border:solid 1 gray;'></form></center>";return $upload;}[/code] Link to comment https://forums.phpfreaks.com/topic/17809-uploading-and-viewing/#findComment-76095 Share on other sites More sharing options...
ScottRiley Posted August 17, 2006 Share Posted August 17, 2006 You posted your upload function twice, instead of your upload and viewing functions.Don't the properties of a form need to be in inverted commas? i.e. <form name=upload> should be <form name="upload">? Link to comment https://forums.phpfreaks.com/topic/17809-uploading-and-viewing/#findComment-76099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.