Action in form, html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Action in form, html

After press on 'submit', i want see the same page. Now, i see a white page. Why? <form method='post' action=''> <input type='number' value='dd' name='dd' min='0' max='31' /> <input type='submit' value='submit' name='yes' /> </form>

4th Jul 2019, 7:41 PM
arieh
5 Answers
+ 6
Don't submit your post in SL editor. It'll redirect to a blank page with URL 'about:blank' Try it in your own PC. It will redirect you to the same URL, the page is on.
4th Jul 2019, 7:45 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 4
Thank. There is not a solution to get the answers of the form in sololearn?
4th Jul 2019, 7:49 PM
arieh
+ 4
arieh Sorry, Sololearn web editor works differently than you normally run your code.
4th Jul 2019, 7:54 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 3
Ok. I have to learn js... Thank you.
4th Jul 2019, 7:59 PM
arieh
+ 2
If you would use a js button instead of submit it would work(and there is no need for a page reload)
4th Jul 2019, 7:56 PM
Lexfuturorum
Lexfuturorum - avatar