<?php
//m.sbmmt.com/code/1040.html#code_down_li
PHP Notice: Undefined index: username in D:\Yangsipeng\code\PS php CODE\reg.php on line 3
Notice: Undefined index: username in D:\Yangsipeng\code\PS php CODE\reg.php on line 3
PHP Notice: Undefined index: pwd in D:\Yangsipeng\code\PS php CODE\reg.php on line 7
< ;br />
Notice: Undefined index: pwd in D:\Yangsipeng\code\PS php CODE\reg.php on line 7
<br />
Process finished with exit code 0
The same prompt appears when opening the web page. The html file is written according to the instructions and the two files are also put together.
$u = $_GET[ 'username'];
echo $u.'<br />';
//$_GET['pwd'] Get form<input type="text" name="username " The value of />
$passwd = $_GET['pwd'];
echo $passwd.'<br />';
?>
Undefined index: username You can print it directly in PHP $_GET to see if there is a username field