If you have any homework answers, please refer to them
红红火火恍恍惚惚2019-10-08 23:29:23
HTML page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" >
<title>Achievements</title>
</head>
<body>
<form action="cjpd.php" method="POST">
<input type="text" name="num1" value="Enter fractions here"
onfocus="if (value=='Enter fractions here')value='%
phpcn_u152772017-08-15 13:12:43
html page
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="reg.php">
Name:<input type="text" name = "username"></br>
Password: <input type="text" name = "password"></br>
<input type="submit" value = "Submit">
</form>
</body>
</html>
PHP code:
<?php
$u = $_GET["username"];
echo $u;
?>
Click submit in the html page and want to run PHP file, but the result is that the PHP file was downloaded. I would like to ask what happened?