+ 3

How to attach working button to this username/ password code

https://code.sololearn.com/WNF0b1Nl4oCY/?ref=app

19th Feb 2018, 11:52 PM
🐺Michael🐺
🐺Michael🐺 - avatar
7 Réponses
+ 13
<form> <label>Username:-</label> <input type="text" name="username"/><br /> <label>Password :-</label> <input type="password" name="password" /> <input type="submit" value="Submit"/> </form>
20th Feb 2018, 4:06 AM
☆Sampath👻
☆Sampath👻 - avatar
+ 3
How do you want the button to work?
20th Feb 2018, 12:15 AM
Toni Isotalo
Toni Isotalo - avatar
+ 3
Just clickable
20th Feb 2018, 12:24 AM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 2
<input type="submit"> when you out it in the same form, it will be (sort of) attached to the whole form
20th Feb 2018, 12:25 AM
Dominique Abou Samah
Dominique Abou Samah - avatar
+ 2
@Dominique is that in html?
20th Feb 2018, 12:43 AM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 1
replace <form> with <form method="post or get" action="controllingscript.php or of any language"> becare full above "or" is not the part of syntax then include another field in form like <button type="submit">Submit</button> Now it will send your form data to the script as mentioned by action attribute. Post: Sensitive data should be sent using it. Get: Insensitive data should be sent using it. You can read on many tutorial websites what actually post and get are.
20th Feb 2018, 2:04 AM
Muhammad Zubair Khalid
Muhammad Zubair Khalid - avatar
+ 1
@michael yes
20th Feb 2018, 2:08 AM
Dominique Abou Samah
Dominique Abou Samah - avatar