Is this code correct | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
7th Aug 2017, 2:01 PM
Ronu John
5 Answers
+ 2
You're getting a superfluous space in b2, which will interfere with your value. This is how it renders: <form method="get"> <input type="text" name="b1"> <input type="submit" value="move" name="move"> <input type="text" value=" " name="b2"> </form> You can test method="post" on a public echo server, as I do here: https://code.sololearn.com/wubNMMMp8mYA/?ref=app
7th Aug 2017, 4:01 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
Should work. A lot of better ways of going about that task, but I assume you're just practicing something in particular. Hard to test that type of code on SoloLearn, but it looks fine at first glance.
7th Aug 2017, 2:08 PM
AgentSmith
+ 1
Then run it on your computer (or server) and see how it goes. I'm not personally going to do that for you, but I did look at it, and the code looks fine. You can't submit forms like that in the SoloLearn area, for the obvious security reasons.
7th Aug 2017, 2:43 PM
AgentSmith
0
thank you but i want to whether the code is absolute
7th Aug 2017, 2:16 PM
Ronu John
0
thank you for you kind co operation
7th Aug 2017, 2:44 PM
Ronu John