If you have any homework answers, please refer to them
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='%
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?
You can post your question and we can refer to it together
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='%
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?
You can post your question and we can refer to it together