/    Sign up×
Community /Pin to ProfileBookmark

Password protect + tracker?

Hi, I’m new here and I’m not the best at programming or design by any stretch of the imagination. However, I’m working on a page and I need some help. I want to set up a password protected PDF file – easy enough in GoLive with an action thing, but I also want to record who visits the page. I thought about doing a form mail script, but I don’t know enough about CGI so I got lost in bundles of text. I don’t even need it emailed, if it can just write to a text file or something… I looked into dynamic pages and my head nearly imploded.

Essentially this is what I want:

Follow Link to PDF
Enter your name/company (Where date, and entered information would be recorded)
Enter password (Doesn’t need to be hardcore encryption process, just something to make life harder on the old fogies who want to see the document)
Redirect to PDF.

Please get back, I really need to figure this out.

Thanks everyone,

-Michael Howie.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@fredmvMar 04.2004 — Welcome to the forums.

This is best handled on the server-side. Client-side JavaScript simply cannot write to a file, thus making it not able to do exactly what you want. You could do something in PHP that would basically write all of the information entered by the user into a database (e.g., MySQL, PostgreSQL, etc.) and then when you wanted to view it you could query the database and obtain the information. A password protection scheme could also easily be done with PHP (though note, JavaScript is secure enough for password protection as well). I, however, do not know server-side very well, so: would you like this moved to the PHP section for you where you can get further help there?
Copy linkTweet thisAlerts:
@TheCaptainauthorMar 04.2004 — That would be excellent, thanks for the help!
Copy linkTweet thisAlerts:
@fredmvMar 04.2004 — No problem — moved. ?
×

Success!

Help @TheCaptain spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...