我最近做了一个登录表单,我收到了一些错误,这里是网站我把PHP代码用html表单和css desighn
您可以在http://www.zuprp.co.uk/full.php(完整)
查看代码答案 0 :(得分:0)
如果($ _ POST [ '名为myUsername']){$ =名为myUsername $ _ POST [ '名为myUsername'];}
如果($ _ POST [ '输入mypassword']){$ =输入mypassword $ _ POST [ '输入mypassword'];}
而不是
$名为myUsername = $ _ POST [ '名为myUsername'];
$输入mypassword = $ _ POST [ '输入mypassword'];
您也可以使用:
如果($ _ POST [ '提交']){
如果($ _ POST [ '名为myUsername']){$ =名为myUsername $ _ POST [ '名为myUsername'];}
如果($ _ POST [ '输入mypassword']){$ =输入mypassword $ _ POST [ '输入mypassword']; }}