yiaggi Posted September 29, 2010 Share Posted September 29, 2010 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 Link to comment https://forums.phpfreaks.com/topic/214720-pdf-file-document-upload-to-appear-on-different-members-own-page/ Share on other sites More sharing options...
yiaggi Posted September 30, 2010 Author Share Posted September 30, 2010 Any idea's on this guys? Link to comment https://forums.phpfreaks.com/topic/214720-pdf-file-document-upload-to-appear-on-different-members-own-page/#findComment-1117540 Share on other sites More sharing options...
litebearer Posted September 30, 2010 Share Posted September 30, 2010 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? Link to comment https://forums.phpfreaks.com/topic/214720-pdf-file-document-upload-to-appear-on-different-members-own-page/#findComment-1117543 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.