Jump to content

PDF file document upload to appear on different members own page


yiaggi

Recommended Posts

Hi guys,

 

I have created a php script (with alot of help from others) that allows me to have a login area on my website. When the user logs onto their page - they obviously cannot see the others profile.

 

My next task is to be able to upload PDF documents to appear on their profiles. The PDF's will be specific to them.

 

The main problems I have are:

 

1/ They cannot be able to view any PDF but their own.

 

2/ How do I create a form that knows where to send and display the link? I guess it is using the user id & name etc?

 

I will not actually be the one uploading the files else I would just sit and tediously link each form to each profile. This must be done by my secretary via a file upload form that I will password protect.

 

I basically want her to be able to log in and be presented with a document upload form. The form will have a dropdown list of the clients name and a document upload part. From uploading it will then appear on the users page. 

 

If anyone could help it would be amazing! I am fairly new to PHP although am getting better with my understanding. Hopefully I will become as good as you lot one day!

 

Cheers in advance :)

thoughts...

 

page 1

  sec logs in

  this then takes her to page 2

 

page 2

  form

  field to identify user/client

  field to upolad pdf

  field to describe pdf

  this goes to page 3

 

page 3

  obtain and sanitize from data (use $_POST to obtain data)

  upload the pdf

  store info in database table

  return to page 2

---

user oriented

page 1

  login

 

page 2

  verify user

  store user id in session variable

  go to page 3

 

page 3

  retrieve session user id

  connect to db

  pull appropriate info from table WHERE userid = session user id

  display the info you want (make link to pdf)

 

capice?

Archived

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

×
×
  • Create New...

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.