homework answers questions
girl
girl 2017-08-15 11:44:51
0
3
1459

If you have any homework answers, please refer to them

girl
girl

reply all(3)
红红火火恍恍惚惚

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_u15277

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?

  • reply Your form is submitted via POST, why does PHP use GET to receive it?
    ringa_lee author 2017-08-15 13:18:37
  • reply I didn't write the submission method. If I didn't write it, wouldn't it be the default get method?
    girl author 2017-08-15 13:22:15
ringa_lee

You can post your question and we can refer to it together

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template