Jump to content
Sign in to follow this  
Guest suggs

password

Recommended Posts

Guest suggs
:) I am trying to set up a web site for a friend, I need to set it so that you can only reach the main page once you have received a password from the validadator. I also have to set it so that they can input bank details and make the first page a pop up.Can anybody help me with the codes as I have only just started doing HTML.

Share this post


Link to post
Share on other sites

what you're asking for needs to be done with either a pre-built package or you need to learn php

Share this post


Link to post
Share on other sites
:)  I am trying to set up a web site for a friend, I need to set it so that you can only reach the main page once you have received a password from the validadator.  I also have to set it so that they can input bank details and make the first page a pop up.Can anybody help me with the codes as I have only just started doing HTML.

try googling for a thing called a CMS (content managment system). If you are using webhosting with cpanel and fantastico, you will find loads of them in there.Some well known ones are phpnuke and mambo. They will help you make the website you want to make :)

Share this post


Link to post
Share on other sites

You need to learn PHP & SQLfor that but if you are looking for a place to enter a password here is a code

<form action="whatever.php" method="POST">Username:<input type="text" name="text" value=""><br>Password:<input type="password" name="password" value="">

I could give you a PHP code for it but it would be very long. Just search google for a CMS likethe other guy said. Ohh and you need this code in your PHP

Share this post


Link to post
Share on other sites

EDIT: I should really have read your post completely. :) The following codes will not exactly apply to what you want to do... Sorry.Javascript could also be used.Something like this:

function enter() {   if (pass = 'myPassword') {      document.location.href = 'nextpage.htm';   }   else {      document.submitpass.submit();   }}

Pass being the ID of the password input.

<form action="wrongpass.htm" id="submitpass" onsubmit="enter()">   <p><input type="password" id="pass"  /></p>   <p><input type="submit" value="Enter" /></p></form>

Though anyone could look at the source to know the password. So you might want to make it a bit more complicated but using this script instead...

function enter() {   jfk='m'; kren='y'; kjds='P'; lkei='a'; lqna='s';   uiel='w'; yeka='o'; beme='r'; nea='d';   if (pass = jfkkrenkjdslkeilqnalqnauielyekabemenea) {      document.location.href = 'nextpage.htm';   }   else {      document.submitpass.submit();   }}

Not sure if that would work... Also, it depends on what your password actually is.

Share this post


Link to post
Share on other sites
EDIT: I should really have read your post completely. :) The following codes will not exactly apply to what you want to do... Sorry.Javascript could also be used.Something like this:
function enter() {   if (pass = 'myPassword') {      document.location.href = 'nextpage.htm';   }   else {      document.submitpass.submit();   }}

Pass being the ID of the password input.

<form action="wrongpass.htm" id="submitpass" onsubmit="enter()">   <p><input type="password" id="pass"  /></p>   <p><input type="submit" value="Enter" /></p></form>

Though anyone could look at the source to know the password. So you might want to make it a bit more complicated but using this script instead...

function enter() {   jfk='m'; kren='y'; kjds='P'; lkei='a'; lqna='s';   uiel='w'; yeka='o'; beme='r'; nea='d';   if (pass = jfkkrenkjdslkeilqnalqnauielyekabemenea) {      document.location.href = 'nextpage.htm';   }   else {      document.submitpass.submit();   }}

Not sure if that would work... Also, it depends on what your password actually is.

Nice work on that. How long did it take you to do that? M

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...