Sending data to the server

From this moment we will begin to interact with data and HTML codes in a broader way. We have just seen how the function print or the command echo are able to write, in the HTML code of a page, some data that was stored in a variable.

Sending data to the server | Learn PHP & MySQL | From this moment we will begin to interact with data and HTML codes in a broader way. We have just seen how the function print or the command echo are able to write, in the HTML code of a page, some data that was stored in a variable

Tools to send data: Links and forms

In the previous chapters, we have referred to the basic PHP concept and syntax, and we have applied them in concrete examples.

From this moment we will begin to interact with data and HTML codes in a broader way. We have just seen how the function print or the command echo are able to write, in the HTML code of a page, some data that was stored in a variable.

But the value of that variable was defined by us. What would happen if we let the user of our website enter values for some of our variables?

The answer is that we would start to create dynamic web pages, that is: pages whose content will change (totally, or only partially), depending on the actions the user performs together before asking to be shown one of those pages. In short: interactive pages.

Web browsers, along with the usual order that requests a particular web page, are also capable of sending data to the web server program that is running on the hosting.

This means that they are not just "receivers" of HTML code, which they convert into decorated and visible information on our screen, but that browsers are also "senders" of data sent from our computer to the hosting, and these data are sent in the form of variables, in two ways:

  1. Through special links
  2. And using forms

Next, we will analyze both possibilities, since the sending of data from a user's browser to the server, is a fundamentally interactive turn, leaving in the hands of each user the (dynamic) content that will be received by the server.

🤖

ChatGPT Free
Ask questions on any topic

CITE ARTICLE


For homework, research, thesis, books, magazines, blogs or academic articles

APA Format Reference:

Delgado, Hugo. (2019).
Sending data to the server.
Retrieved Nov 04, 2024, from
https://disenowebakus.net/en/sending-server-data-php

Participates!

Share it with your friends in Social Networks!

Professor at the University of Guadalajara

Hugo Delgado Desarrollador y Diseñador Web en Puerto Vallarta

Professional in Web Development and SEO Positioning for more than 10 continuous years.
We have more than 200 certificates and recognitions in the Academic and Professional trajectory, including diploma certificates certified by Google.

CONTINUE LEARNING

PREVIOUS


IT ALSO DESERVES TO PAY TO VISIT:

Not finding what you need?

Use our internal search to discover more information
Related content:

Would you like to learn more about Web Design?

Meet all the courses and tutorials that we have for you completely free
Learn Web Design
 

Leave your Comment

SPONSOR

Your business can also appear here. More information