5 Replies - 39915 Views - Last Post: 13 July 2006 - 06:36 AM

#1 convertxiii  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 27-June 06

Creating a login page

Posted 12 July 2006 - 06:45 AM

I'm an HTML n00b but am trying to make a login page for a site...I know I could prob do this in Javascript but since I haven't worked with that before I'm trying it in HTML...

<html>
<body>

<form>
Username: 
<input type="text" name="user" size="20" />
<br/>
Password: 
<input type="password" name="password" size="20" />
<br/>
<input type="submit" value="Submit">
</form>

</body>
</html>



I am trying to get the username and password that is submitted to a designated file...Is this at all possible?

Is This A Good Question/Topic? 0
  • +

Replies To: Creating a login page

#2 snoj  Icon User is offline

  • Married Life
  • member icon

Reputation: 84
  • View blog
  • Posts: 3,564
  • Joined: 31-March 03

Re: Creating a login page

Posted 12 July 2006 - 07:19 AM

HTML displays data, javascript is meant for make the HTML do things like move and rearrange. Javascript isn't a good thing to validate passwords as anyone could find out what those words are.

What you're needing is a server side language like PHP or ASP.

Also, you're forgetting the method and action attributes for the form tag.
Was This Post Helpful? 0
  • +
  • -

#3 the_hangman  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 14
  • View blog
  • Posts: 602
  • Joined: 18-January 06

Re: Creating a login page

Posted 12 July 2006 - 08:54 AM

Hotsnoj is right. HTML doesn't DO anything. It just tells the browser what pretty things to show.
I like to think of web languages as a rocket:

-HTML is the big pointy metal case painted white with "if you can read this you are going to die" painted on the nose. It just hold everything in place.

-Scripts (Javascript, ASP, PHP) are like the fuel. It makes it DO something. Without it the rocket would just sit there and look neat.

-This neat new CSS thing is like the guy who designed the rocket. He tells people what to make the rocket look like, what shape it should be in, what color, how big etc.




I suck at analogies
Was This Post Helpful? 0
  • +
  • -

#4 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 205
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

Re: Creating a login page

Posted 12 July 2006 - 11:41 AM

php is not perfect, but javascript is an easily hacked password protection. Any noob with knowledge of files could get it.
For a basic example try: php password

I leave it to your to make it more dynamic, I have yet to post that one :)
Was This Post Helpful? 0
  • +
  • -

#5 morfy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 21-September 05

Re: Creating a login page

Posted 13 July 2006 - 12:00 AM

1st the hangman described it perfectly;
2nd try this tutorial (there is part one too) http://www.daydreamg...rial/list/178/2
Was This Post Helpful? 0
  • +
  • -

#6 convertxiii  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 27-June 06

Re: Creating a login page

Posted 13 July 2006 - 06:36 AM

Thanks for all the help guys! I'm gonna try it with PHP

PS: Hangman that analogy was pretty funny...= o P

This post has been edited by convertxiii: 13 July 2006 - 06:37 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1