Member Panel


Sponsors and Ads

Noticeboard

PC Forum PC Help Forum » Web & Networking » Web Design » [Answered] Adding Search & passwored page to Dreamweaver web sight??? HOW

Web Design - [Answered] Adding Search & passwored page to Dreamweaver web sight??? HOW posted in the Web & Networking forums; Hi, I would just like to know if there is a way i can password a serten page on a web sight useing dreamweaver so only people with the password ...

JOIN US NOW to remove these Ads

Post New Thread  Reply
  #1  
Old 02-27-2006
Bronze Member
 
Join Date: Feb 2006
Posts: 7
oOwhiteOo - See this Members User comments on their Profile page
Question [Answered] Adding Search & passwored page to Dreamweaver web sight??? HOW

Hi,

I would just like to know if there is a way i can password a serten page on a web sight useing dreamweaver so only people with the password can vue the page.

Any help would be gr8.

One more..

Iv made a web sight with dreamweaver www.rasstechno.co.uk i was just woundering if there is a way i can add a Web sight SEARCH only so if mr A wonted to see a serten thing on my web page he could search it & it would just pop up.

ty for the help in advince. :hello2:


  #2  
Old 02-27-2006
ladygreenwitch's Avatar
HR Director
 
Join Date: Jul 2005
Location: Bay Area California
Posts: 5,353
PC Experience: PC Illiterate
ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page ladygreenwitch - See this Members User comments on their Profile page
Default

Hey oOWhiteOo,

Welcome to PCHF. We have a number of web gurus onsite, and I am sure that one of them will be along directly.

Enjoy your time in the forums.

TTFN

LGW


  #3  
Old 02-27-2006
Spaceman3750's Avatar
Elite Member
My PC
 
Join Date: Jan 2004
Location: Riverton, IL, USA
Posts: 1,510
PC Experience: Very Experienced
Spaceman3750 - See this Members User comments on their Profile page
Send a message via AIM to Spaceman3750 Send a message via MSN to Spaceman3750 Send a message via Yahoo to Spaceman3750
Default

Hello oOWhiteOo,

To my very limited knowledge of Dreamweaver, there is no function that will add password protection or search functions. However, there is hope!

To add search functionality, Google offers a tool which will allow you to do just that. After Google has indexed your site's pages, insert the following code below into the location you want a Google search bar, replacing any instances of YOURSITENAME to the URL of your site.

<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google"></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1>
<input type=hidden name=domains value="YOUR DOMAIN NAME"><br><input type=radio name=sitesearch value=""> WWW <input type=radio name=sitesearch value="YOUR DOMAIN NAME" checked> YOUR DOMAIN NAME <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->
To password protect a page, I have written a little JavaScript that will help you out:

<script type="text/css" language="JavaScript">
var password = "PASSWORD";

var passenter = input('Please enter the password.', 'Password here');

if(+passenter+ != +password+) { history.go(-1); }
</script>
USAGE OF THIS SCRIPT:
Place it immediately after the <head> tag of the page you want to protect. Replace "PASSWORD" with the desired password.

WARNING:
This script is extremely insecure, and should only be used if you don't mind a smart person coming along and easily finding your password or bypassing the if() loop (in this script, neither is hard to do). If you have stuff that needs to be kept private, look into a PHP script to get the job done. Or, get someone to do a custom PHP script to fit your needs. Also, this script hasn't been tested, it may require a little tweaking to get it functioning properly.

I hope this helps you!


__________________
- Ryan
http://www.spaceman3750.info
http://www.conglomerate-game.net

Cisco Academy - CCNA student
  #4  
Old 02-28-2006
Bronze Member
 
Join Date: Feb 2006
Posts: 7
oOwhiteOo - See this Members User comments on their Profile page
Default

ta very much ill be useing fourm a lot


  #5  
Old 03-01-2006
Spaceman3750's Avatar
Elite Member
My PC
 
Join Date: Jan 2004
Location: Riverton, IL, USA
Posts: 1,510
PC Experience: Very Experienced
Spaceman3750 - See this Members User comments on their Profile page
Send a message via AIM to Spaceman3750 Send a message via MSN to Spaceman3750 Send a message via Yahoo to Spaceman3750
Default

No problem, glad to help .


__________________
- Ryan
http://www.spaceman3750.info
http://www.conglomerate-game.net

Cisco Academy - CCNA student

Reply
Satellite TV on your PC - over 3000 Channels! Click Here!

Bookmarks

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

All times are GMT +1. The time now is 05:21 AM.
Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
All Graphics & Content Copyright © 2004-2008 - PC Help Forum.com


Back to Top