Need help on how to use the form target with the submit tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Need help on how to use the form target with the submit tag

Can anyone pls explain to me how to use d form target url with d submit cos i wrote a short program including d target as one of my other programmed pages but when i click on submit/login, it does nothing

20th Apr 2017, 9:42 PM
Olurode Mus'ab
Olurode Mus'ab - avatar
3 Answers
+ 12
If i have understood correctly, you want to create a form that links to other pages. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <form action = "YourPage.extension"> <input type = "submit" /> </form> In SL you can't insert your personal file, you can create link to remote pages on web, for example: <form action = "http://www.html.it"> <input type = "submit" /> </form> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20th Apr 2017, 9:52 PM
Maz
Maz - avatar
+ 2
Following code should work if you have no other errors in code, I suggest that you should add your code. <form method="post" action="#"> <!-- What ever you want to do replace '#' with your relevant server side script--> <input type = "submit" value ="Submit"/> </form>
20th Apr 2017, 9:53 PM
Chinmaya Bhondwe
Chinmaya Bhondwe - avatar
+ 1
understanding javascript might help a lot
21st Apr 2017, 1:22 PM
Olurode Mus'ab
Olurode Mus'ab - avatar