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

The problem of using variables to represent PHP form name values

不言
不言Original
2018-04-13 17:47:252016browse

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".'

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!

Statement:
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
Previous article:PHP string replacementNext article:PHP string replacement