javascript - How do I make a (mock) bank system? -
i rather confused. have searched hr explanation this.
here's deal. create (mock)bank login system. want username , password login box, , want have when click button says login, takes user specific webpage. moment, don't care how long or complex is, want utilize html, css , javascript. know languages moment. seems simple, cannot find anywhere on internet, , confused. if help me, nice.
there few elements need aware of when writing simple form in html;
the <form> tag
this describe want form , send it.
i won't go through options here, when want user submit details utilize post method. code method='post'.
you need you're sending form, webpage sort of scripting capability, such php, asp.net, or similar. code action='process.php' process.php page form beingness sent to. utilize of server side language more acceptable solution process form.
we can set these 2 parts, called arguments, within <form> tag this;
<form method='post' action='process.php'> <input> elements
for purposes of form, we'll concentrate on text input elements.
in simplest form, input elements require name , type. name identifier know info entered in field when processing form. type text, password, email, date, , few others. we're going utilize first 2 here, code like.
username: <input type="text" name="username"><br> password: <input type="password" name="password"><br> the <br> signifies want next bit of content on new line.
submit button
don't forget button submit. code is;
<input type="submit" value="submit"> couldn't simpler (you can alter text on button changing value).
the finished product
let's set together;
<form method='post' action='process.php'> username: <input type="text" name="username"><br> password: <input type="password" name="password"><br> <input type="submit" value="submit"> </form> don't forget end form closing </form> tag.
hope helps.
javascript html css
No comments:
Post a Comment