不执行波纹管代码 [英] Not executing bellow code
本文介绍了不执行波纹管代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我是php新手。
Hi all,
Am new to php.
<form action="<?php echo $_SERVER['PHP_SELF'];??>" method="post">
<table>
<tr>
<td>Username:</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Login" /></td>
</tr>
</table>
</form>
当我进入所有场地并点击登录按钮时,
在功能中
when i entering all feilds and click login button ,
In the function
if ( !empty ( $_POST ) ) {
//not coming inside this if statement
}
它不会在上面的函数内执行..请告诉我如何才能解决上述问题..我怎么能进入if语句?
it will not executing inside above function.. please tell me how can i solve above.. how i can i go inside if statement ?
推荐答案
_SERVER ['PHP_SELF']; ??> 方法 = post >
< table >
< tr >
< td > 用户名:< / td >
< td > < 输入 类型 = text 名称 = 用户名 / > < / td >
< / tr >
< span class =code-keyword>< tr >
< td > 密码:< / td >
< td > < 输入 < span class =code-attribute> type = password 名称 = 密码 / > < / td >
< / tr >
< tr >
< td > < / td >
< td > < input type = submit value = 登录 / > < / td >
< / tr >
< / table >
< /表格 >
_SERVER['PHP_SELF'];??>" method="post"> <table> <tr> <td>Username:</td> <td><input type="text" name="username" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password" /></td> </tr> <tr> <td></td> <td><input type="submit" value="Login" /></td> </tr> </table> </form>
当我输入所有字段并点击登录按钮时,
在函数中
when i entering all feilds and click login button ,
In the function
if ( !empty (
_POST )){
// 没有进入这个if语句
}
_POST ) ) { //not coming inside this if statement }
它不会在上面的函数内执行..请告诉我我怎样才能解决上面的问题..我怎么能进去if语句?
it will not executing inside above function.. please tell me how can i solve above.. how i can i go inside if statement ?
原因是这里有一个小的语法错误:
The reason is a small syntax error here:
<form action="<?php echo
这篇关于不执行波纹管代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文