0
Hi i want to create a form in html and i want the form submit in my server how can i do pliz
See my code to understand what i say https://code.sololearn.com/Wi4CqI0D40Ia/?ref=app
3 ответов
+ 7
The web is based on a very basic client/server architecture that can be summarized as follows: a client (usually a Web browser) sends a request to a server (most of the time a web server like Apache , NGINX , IIS, Tomcat , etc.), using the HTTP protocol. The server answers the request using the same protocol.
On the client side, an HTML form is nothing more than a convenient user-friendly way to configure an HTTP request to send data to a server. This enables the user to provide information to be delivered in the HTTP request.
The action attribute
This attribute defines where the data gets sent. Its value must be a valid URL. If this attribute isn't provided, the data will be sent to the URL of the page containing the form.
In this example, the data is sent to an absolute URL
— http://foo.com:
<form action="http://foo.com" method= "get">
The <form> element defines how the data will be sent. All of its attributes are designed to let you configure the request to be sent when a user hits a submit button
+ 6
I can not tell you or teach you all the aspects just by words you may need to follow some tutors and make some researches to understand the mechanism of client/server communication
+ 2
you can acsses to your elements in php by $_get[name of your input]