Dreamweaver

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentDreamweaver

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old November 22nd, 2011, 07:18 AM
Dimaklis Dimaklis is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 2 Dimaklis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 m 54 sec
Reputation Power: 0
Download a file using a password

Hello everyone, I would like to make a "download" section on a website, where the user will enter a password in a text field and this will initiate a respective file download. For example if they type "password1" and press enter, the download of "file1" should begin.

Any instructions/suggestions would be very helpful.

Thank you

Reply With Quote
  #2  
Old November 27th, 2011, 04:20 PM
_Kenny_Programing_'s Avatar
_Kenny_Programing_ _Kenny_Programing_ is offline
~Moderator~
Click here for more information
 
Join Date: Feb 2006
Location: Ohio
Posts: 640 _Kenny_Programing_ New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 2 Days 23 h 40 m 55 sec
Reputation Power: 0
Send a message via MSN to _Kenny_Programing_ Send a message via Skype to _Kenny_Programing_ Send a message via XFire to _Kenny_Programing_
this would be ideal work for Jacascript. =] just go to Javascript.com and checkout there codes.
__________________
Never judge a book by its cover.

Reply With Quote
  #3  
Old November 28th, 2011, 07:09 AM
Dimaklis Dimaklis is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 2 Dimaklis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 m 54 sec
Reputation Power: 0
Kenny, thank you for your reply. This is how I figured it out finally (using javascript).
Here is the code I used in case someone needs it.

<!--//
function pasuser(form) {
if (form.pass.value=="your password") {
location.href= "name of the file"
} else {
alert("Invalid Password")
}
}
//-->
</script>

<form name="download">
<input name="pass" type="password">
<td><div align="center">
<p>
<input type="button" value="Download"
onClick="pasuser(this.form)">
</p>
</div></td>

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentDreamweaver > Download a file using a password


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap