I happen to click on the “Submit” button which is being rendered on the web page, it displayed the image of “burger” with a text “Thanks for your submission!”. I am intrigued, what enabled this text to display on the page?
The form renders another page (submission.html), you can look at this file. Find the directory/folder icon in the top right of the text-editor and click it
so I made my own submit button and used another page for it but instead it d’int work sometimes when I press I’ts: a run button and sometimes it does nothing.
It is possible to have more than one form element, but each will need its own action/method and its own Submit input. If we only want to Submit once all (required) input controls have been populated, then pack it all into a single FORM element.
If we are using form controls to collect data for local rendering with script behavior, then it need not be wrapped in a form element. We can address each control individually in real time and render some kind of response immediately. That is another story, for later.
Hello, I am using vs code, two files that index and submission.html working, but When I was press submit button, I got the “http 405post not allowed”. I debugged launch chrome.
What should I do for debug. How can I handle config https post request?
Thank you
I am unsure if this has already been covered, but I have found the submit button confusing due to the different ways in which you can define a button, so I researched it a little, so you wont have to. Here is a brief summary;
Defines a submit button which submits all form values to a form-handler.
You can’t use pseudo-classes (::before, ::after) to style self-closing tags.
Defines a clickable button, mainly used with JavaScript to activate a script.
No default behaviour.
Defines a clickable button, in which you can put text, images or other html tags.
* More flexible in design, you can easily style buttons with CSS.
* Always specify the type attribute for a <button> element, to tell browsers what type of button it is. Without a
type the default will be submit, meaning it will automatically submit data when pressed, which may not be what
you intend.