Home > Backend Development > PHP Tutorial > The problem of using variables to represent PHP form name values

The problem of using variables to represent PHP form name values

不言
Release: 2023-03-23 19:04:01
Original
2066 people have browsed it

The content of this article is about the problem of using variables to represent the name value of the PHP form. Now I share it with you. Friends in need can refer to it


The assignment of name to input through PHP can be solved in the following way;

name='."$i".'
Copy after login

1. Because PHP quotation marks cannot To apply, use English commas to connect . .

2. Because PHP double quotes can identify variables, Single quotes don’t work, so use double quotes to enclose the variables ""

##Related recommendations:

Detailed explanation of php form file iframe asynchronous upload example

How to solve the problem that PHP form $_FILES is empty

The above is the detailed content of The problem of using variables to represent PHP form name values. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template