Current location: Hot Scripts Forums » General Community » Script Requests » script request


script request

Reply
  #1 (permalink)  
Old 01-16-04, 12:54 PM
Infinity Infinity is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
script request

Hi I wonder if any of you can help.
I have a webpage on my pws which has a 5 column table in the end column is a picture of a disk which when you click on it downloads the file described in the other columns.
I want everybody who logs on to the site to be able to view these pages however I only want certain people to be able to download the files so I need a script with a password textbox so that when the page is first shown the disk image/file link is not visible or another image is displayed and only when the correct password is entered the default image is replaced by the disk image with the file links.
any help would be much appreciated
PS if you reply to this please bear in mind html, php etc. iliterate so please make it simple like me
Reply With Quote
  #2 (permalink)  
Old 01-16-04, 01:04 PM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
well i know of a somewhat simple way try using .htaccess very simple though you would need to encrypt your passwords which im sure you can find at most providers if u need more info reply back
Reply With Quote
  #3 (permalink)  
Old 01-16-04, 01:09 PM
Infinity Infinity is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
the trouble with htaccess is it protects the whole page I just want the download links hidden until a password is entered.
Thanx.
Reply With Quote
  #4 (permalink)  
Old 01-17-04, 10:22 AM
Aaronn's Avatar
Aaronn Aaronn is offline
Newbie Coder
 
Join Date: Nov 2003
Location: Spokane Washington
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Infinity
the trouble with htaccess is it protects the whole page I just want the download links hidden until a password is entered.
Thanx.

Do you run a database?
if you do you could have it authenticate to the database, then if a certain person logs in, have it return code from the table i.e. the image/link. If the person is not in the database it would return nothing.
Reply With Quote
  #5 (permalink)  
Old 01-17-04, 11:00 AM
darkcarnival's Avatar
darkcarnival darkcarnival is offline
PHP/MySQL coder
 
Join Date: Jun 2003
Posts: 939
Thanks: 0
Thanked 0 Times in 0 Posts
right now im making a user auth script to run with a program of mine. its complex but also ez not sure if i want to give it out, but making 1 is very simple
Reply With Quote
  #6 (permalink)  
Old 01-19-04, 01:57 PM
!!! HotCGIScripts !!!'s Avatar
!!! HotCGIScripts !!! !!! HotCGIScripts !!! is offline
Guru Programmer
 
Join Date: Jun 2003
Location: USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
I think .htaccess is good solution for you. And it could give access to wanted people only but with saving link to file on page. You could find many .htaccess managers here.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with my largest perl script. Grabbing data from a file. Sunnmann Perl 2 04-23-08 03:27 AM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
Affiliate script (PHP) whtiebear Job Offers & Assistance 2 12-21-03 12:12 AM
Members Section/area Script Request cashmc Script Requests 0 09-18-03 10:29 AM
Script request onairLA Job Offers & Assistance 2 08-22-03 01:14 PM


All times are GMT -5. The time now is 09:24 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.