php 提交表单不能获得文本框里的值

来源:百度知道 编辑:UC知道 时间:2024/07/04 13:02:31
<?php
$name=$_POST['username'];
echo "$name";
?>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<link rel="Stylesheet" href="./CSS/Login.css" type="text/css" />

</head>
<body>
<form id="form1" action="" method="post">
<div>
<div id="login">
<div class="login_top">用户登陆</div>
<div class="login_name">
用户名:<input type="text" id="username" style="width:150px;"/>
</div>
<div class="login_pwd">
密  &nbs

用户名:<input type="text" id="username" style="width:150px;"/>
用name = "username"试试

<form id="form1" action="" method="post">
改:
action="你提交的路径"

action="这个文件的文件名"
说明你的基础还不牢固,还得多加联系啊 !

<form id="form1" action="" method="post">
action=""等于已给什么啊!!