Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 输入文本框的回显值_Php_Html - Fatal编程技术网

Php 输入文本框的回显值

Php 输入文本框的回显值,php,html,Php,Html,我没有访问“图像”的权限 如何仅回显值,即:500 <?php echo htmlentities($img_width); // Outputs: <input type="text" name="image_w" value="500" size="6" maxlength="5"/> ?> 试试看我正在使用htmlentities寻找“值”。你想知道图像宽度是吗?是的,但我能得到它的唯一方法是通过上面的回音。我无法访问输入元素。请详细说明您的问题$

我没有访问“图像”的权限

如何仅回显值,即:500

<?php
    echo htmlentities($img_width);
    // Outputs: <input type="text" name="image_w" value="500" size="6" maxlength="5"/>
?>

试试看

我正在使用htmlentities寻找“值”。你想知道图像宽度是吗?是的,但我能得到它的唯一方法是通过上面的回音。我无法访问输入元素。请详细说明您的问题$img_width是输入框,我希望将其“值”用于其他变量。
echo '<input required  type = "text" name = "image_w" value="' . $img_width. '" />'