Jump to content

Archived

This topic is now archived and is closed to further replies.

cle13

uploading and viewing.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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">?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.