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. Quote Link to comment 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. Quote Link to comment 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] Quote Link to comment 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">? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.