Thursday 18 January 2018

How to make an error handling form using html and javascript



Validation with javaScript.


Hello! Friends in this post i will show you how you can handle user input in a login form using javascript. 

So, here's the code.


<html>
<head>
<title>checking user input </title>
<script type="text/javascript">
function check ()
{
if (document.form1.username.value="" :: document.form1.password.value="")
{
alert ("username or password field is empty");
}
else
if (document.form1.password.value="continue" && document.form1.username.value="continue")
{
alert ("correct password and username");
}
else
{
alert ("wrong password or username");
}
}
</script>
</head>
<body>
<form name="form1">
Username
<input type="text" name="username" value="">
Password
<input type="password" name="password" value="">
<input type="button" value="Submit" onclick="check">
<input type="clear" value="Clear">
</body>
</html>

    Comming soon          advanced data validation using javascript which can be used to make sqli (sql injection) resistant login forms.

Comment your suggestions regarding this post.
Be happy and have fun.

Follow for more.....................................................................


See also
1. how to make a key logger using c++.
         
2. make a gui calculator without using javascript.
           
3. google trick.

Amazing google trick

AMAZING  GOOGLE  TRICKS.


1. trick for downloading free ebooks, music,videos, pdf files etc.

Type in google :-

"intitle:index.of?pdf  c++"

You can can remove pdf with any other format like Mp4 ,Mp3 etc. And use other index name in place of c++.

Note - google may give you a notice that they have detected traffic from your network. In case of this just varify the captha.



Other tricks coming soon.

See also how to make a keylogger using c++.

Be happy and have fun.

Comment your suggestion regarding this post.

Tuesday 16 January 2018

working calculator without using javascript

CALCULATOR MADE USING CSS AND HTML.



Hello! Friends in this page i will show you how you can make a stylish or just a simple calculator using just the knowledge of html only . it dosent involves javascript. You can add css to style your calculator in your own way here i will show only the code of simple multi functioning calculator.