I’ve been tasked with making a webpage in ONLY HTML. I am at the point where I want to create forms. However, I’m not sure if these form submissions can be saved using only HTML.
I applied the following code (obtained from WC3 Schools) to my webpage:
<form name="input" action="html_form_action.asp" method="get">
Username: <input type="text" name="user" />
<input type="submit" value="Submit" />
</form>
I created a filed called “html_form_action.asp”. However, when I double click my .html file to launch my page and I click submit (to submit the form), I receive an error “page can’t be loaded” and nothing is written to my html_form_action.asp file. Is there some other way I’m supposed to set this up?
Thank You for any help! 🙂
You need to set up a web server to process your requests on the back end! There is need to have javascript as you said! Because you seem to be using ASP, setting up Microsoft IIS on your computer would be a good option.
Double clicking the HTML file will not help. You need to run it via your set up server then.