What should I do if I have doubts about the php client and server?
Source: Internet
Author: User
Regarding questions about the php client and the server, I understand that the client is executed by the browser, and the server is executed by the server. I am confused. how can I determine whether the code is executed by the browser or by the server ?? Is it because $ _ GET, $ _ POST, $ requests and other uppercase variables are server-side variables? Also, for example, I used to ask a question about the form's questions about the php client and the server.
I understand that the client is executed by the browser, and the server is executed by the server.
I am confused. how can I determine whether the code is executed by the browser or by the server ??
Is it because $ _ GET, $ _ POST, $ requests and other uppercase variables are server-side variables?
Also, for example, I have asked a question before, that is, about repeated form submission. on CSDN, friends say that they should write a judgment code on the client side, and then write a judgment code on the server side. Although it has been basically solved, I feel that I have only written the client, but I have not figured out what is going on the server.
I don't have any php tutorials. please give me more details. thank you!
------ Solution --------------------
Very simple, The code in the tag is executed by the server, and other codes are interpreted by the browser.
------ Solution --------------------
PHP code is executed on the server.
JavaScript code is executed in a browser.
$ _ GET... $ _ POST is submitted by the client to the server. of course, the server must receive the request.
The server, that is, your php code, and POST data receiving and processing
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.