下面的代码将在代码的php部分中回显传递的值/变量,仅在第2行验证变量是否正在传递。 html部分中的文本框保持空白,不会填充。
我已经删除了所有其他代码,试图找到我的错误,我做错了什么?
<?php
echo $new_customer . $_POST['search'];
?>
<!doctype html>
<html lang="en">
<body>
<input type="text" name="customer_name" value="<?php echo $new_customer; ?>" id="customer_name">
</body>
</html>
答案 0 :(得分:0)
您需要"scripts": {
...
"postinstall": "npm rebuild babel-cli",
...
}
的价值。
$new_customer
除非您为<?php
$new_customer = $_POST[search];
?>
指定值,否则无法以html格式打印。