该代码正在运行,但浏览器显示错误-
未定义索引:第38行中C / location中的方式未定义 索引:在C /位置的名称...在第39行。
但是代码工作正常。我在做什么错了?
HTML
<form action="practice.php" method="get">
Input the Behaviour:<input type="text" name="ways"><br>
Input the Name:<input type="text" name="name"><br>
<input type="submit" name="Submit" value="Let's Go!">
</form>
PHP
<?php $var = $_GET["ways"];
$jar = $_GET["name"];
echo "$jar was a $var Little man.<br>";
echo "$var enough to do all kind of $var things.<br>";
echo "$jar died, He died a $var death!<br>"; ?>