Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Need help with Unsecure Login Script with redirect


Need help with Unsecure Login Script with redirect

Reply
  #1 (permalink)  
Old 01-21-10, 04:43 PM
robohalo22 robohalo22 is offline
New Member
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Need help with Unsecure Login Script with redirect

I need to make a login script for my website. I'm using iweb so i cant bounce it against a php file. it just needs to check if the values are true or false and if i matches the true value it redirects to a hidden page on the website.
So the script needs to show the username-login on the site and if the username and login matches a single value for both, it redirects the user to a page.
I realize that there can only be one username and one password this way.
It also needs to redirect to a hidden login unsuccessful page as well if the value are wrong. I'm not that great with scripting and can't find anything like this online.
I would really appreciate the help, i need the full script not just a section, including the username and login tables.
Thanks in advanced.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-21-10, 06:16 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by robohalo22 View Post
I need to make a login script for my website. I'm using iweb so i cant bounce it against a php file. it just needs to check if the values are true or false and if i matches the true value it redirects to a hidden page on the website.
Without using some kind of scripting, I don't see how you can do this. HTML is a 100% static language, there is nothing in it that would allow evaluation of variables or matching. You could do something very basic like this with Javascript, although it would have no real security. But HTML has no active component, you will need *some* kind of scripting to make any kind of login work.

My recommendation is to get another host (even many of the free web hosts allow PHP scripting).
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-21-10, 08:24 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-22-10, 12:28 AM
ruteckycs's Avatar
ruteckycs ruteckycs is offline
Coding Addict
 
Join Date: Jul 2009
Posts: 377
Thanks: 6
Thanked 10 Times in 10 Posts
There are 3rd party services that allow you to password protect a web page Google around some.
__________________
This post was created with 100% recycled electrons.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 01-22-10, 11:53 AM
timbaker1991's Avatar
timbaker1991 timbaker1991 is offline
Newbie Coder
 
Join Date: Dec 2009
Location: London, UK
Posts: 38
Thanks: 2
Thanked 3 Times in 3 Posts
try having a look at this its fairly straight forward, and requires onyl PHP code and does give some very basic protection in that you cant simply do 'view source'

Dynamic Drive DHTML Scripts- Encrypted Password script

Dynamic drive used to be my source for all sorts, good site worth a bookmark.
If you need more help feel free to private message me
Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
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
RE: Login redirect script duranross JavaScript 7 03-07-09 06:47 AM
login script chazze06 PHP 13 12-30-08 12:21 AM
login script works fine in firefox, nothing in IE! varial PHP 3 03-14-05 09:36 AM


All times are GMT -5. The time now is 02:54 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.