i was doing the davies burger lesson, and at the end it said to make a submit button. I was wondering if there is a way u get the information inputted? like forexample you own a real returant, and someone is ordering something, and u want to know! so how can i do that?
You’d probably send the information to a server and have the server deal with that information somehow.
I think that can be done using the <form> tag with some of these attributes:
or, instead of using the <form> tag, you could use <input> (with
type="submit"), [which ends up looking like a button] with some of these attributes:
Hi, thanks for the reply.
I know how to use the
<input>. Like you said send it somewhere, but how do I send it?
Form data is sent (or ‘submitted’) when the
type="submit" is clicked. The data is sent to the URL specified in the
<form> tag, which goes in as the
This will “POST” the data to the submission.html page. To POST it means to send it, expecting nothing in return (from the recipient).
How can I recieve that data when they submit?
We’re getting a bit off-topic now, since this is an HTML-only course, but you can find out more about retrieving the data here.