|
Post by Mia Limos on Feb 25, 2014 21:46:36 GMT -5
Hi! I have been using CSS for quite awhile and you might want to ask something that is related to CSS, HTML and web design Post your questions here and I might be able to help you. One of the free CSS resources I used is Generate CSS - www.generatecss.com/ Its a css code generator and don't worry it is free!
|
|
|
Post by bloodknight on Feb 25, 2014 23:37:03 GMT -5
Hi! I have been using CSS for quite awhile and you might want to ask something that is related to CSS, HTML and web design Post your questions here and I might be able to help you. One of the free CSS resources I used is Generate CSS - www.generatecss.com/ Its a css code generator and don't worry it is free! Hi..I'm just new to web programming. I'm still learning the basics of html and css. I just have a question. Can you show me a code for creating a simple registration and login form?. Thanks it would help me very much as I'm trying to create a website of my own.
|
|
|
Post by Mia Limos on Mar 3, 2014 21:57:12 GMT -5
Hi..I'm just new to web programming. I'm still learning the basics of html and css. I just have a question. Can you show me a code for creating a simple registration and login form?. Thanks it would help me very much as I'm trying to create a website of my own. Hi Sure.I have a sample code here that would ask the user to input a username and password and will prompt for an error message if the login credentials are incorrect. It is using HTML and Javascript. <html>
<head>
<title>
Login page
</title>
</head>
<body>
<h1 style="font-family:Comic Sans Ms;text-align="center";font-size:20pt;
color:#00FF00;>
Simple Login Page
</h1>
<form name="login">
Username<input type="text" name="userid"/>
Password<input type="password" name="pswrd"/>
<input type="button" onclick="check(this.form)" value="Login"/>
<input type="reset" value="Cancel"/>
</form>
<script language="javascript">
function check(form)/*function to check userid & password*/
{
/*the following code checkes whether the entered userid and password are matching*/
f(form.userid.value == "myuserid" && form.pswrd.value == "mypswrd") {
window.open('target.html')/*opens the target page while Id & password matches*/
}
else
{
alert("Error Password or Username")/*displays error message*/
}
}
</script>
</body>
</html>
save this as try.html then create a new html form named target.html - just typed in any texts. if the user input the correct username and password, it will be directed to target.html. meanwhile, it will just prompt for an error message. the correct username for this is myuserid password is: mypswrd hope it helps!
|
|
|
Post by bloodknight on Mar 3, 2014 22:50:54 GMT -5
Hi Sure.I have a sample code here that would ask the user to input a username and password and will prompt for an error message if the login credentials are incorrect. It is using HTML and Javascript. <html>
<head>
<title>
Login page
</title>
</head>
<body>
<h1 style="font-family:Comic Sans Ms;text-align="center";font-size:20pt;
color:#00FF00;>
Simple Login Page
</h1>
<form name="login">
Username<input type="text" name="userid"/>
Password<input type="password" name="pswrd"/>
<input type="button" onclick="check(this.form)" value="Login"/>
<input type="reset" value="Cancel"/>
</form>
<script language="javascript">
function check(form)/*function to check userid & password*/
{
/*the following code checkes whether the entered userid and password are matching*/
f(form.userid.value == "myuserid" && form.pswrd.value == "mypswrd") {
window.open('target.html')/*opens the target page while Id & password matches*/
}
else
{
alert("Error Password or Username")/*displays error message*/
}
}
</script>
</body>
</html>
save this as try.html then create a new html form named target.html - just typed in any texts. if the user input the correct username and password, it will be directed to target.html. meanwhile, it will just prompt for an error message. the correct username for this is myuserid password is: mypswrd hope it helps! Hi thank you so much Mia. You've been really helpful.
|
|
|
Post by Mia Limos on Mar 5, 2014 5:36:21 GMT -5
Youre always welcome, sir
|
|
|
Post by bloodknight on Mar 16, 2014 7:08:56 GMT -5
Hi! I have been using CSS for quite awhile and you might want to ask something that is related to CSS, HTML and web design Post your questions here and I might be able to help you. One of the free CSS resources I used is Generate CSS - www.generatecss.com/ Its a css code generator and don't worry it is free! Is this your website?..It looks nice and neat.
|
|
|
Post by Mia Limos on Mar 20, 2014 6:08:02 GMT -5
^It was my friend's sir :-)
|
|
|
Post by bloodknight on Mar 23, 2014 4:32:17 GMT -5
^It was my friend's sir :-) good to know..Tell her/him I'm enjoying the site.
|
|
|
Post by Mia Limos on Jul 10, 2014 5:28:18 GMT -5
|
|
|
Post by bloodknight on Jul 11, 2014 21:48:01 GMT -5
thanks for a great tip. I started using both sites now at the same time. I really learned a lot.
|
|
|
Post by Mia Limos on Jul 31, 2014 22:15:18 GMT -5
Youre welcome
|
|