本文介绍了密码PHP页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在尝试密码在Apache和PHP公司内部网上运行 的MySQL数据库的更新页面。我不在乎这个数据库的页面 - 只是更新页面,并且想要 五个人(或者左右) )谁可能正在进行更新,只输入一个密码 然后将该密码写入MySQL数据库字段。 在我的输入页面上作为最后一个我的表格的一部分,我正在使用; < tr> < td>密码:< / td>< td align =" left" ;>< input type =" password" name =" password"大小= QUOT; 15" MAXLENGTH = QUOT; 15" value ="">< / td> < / tr> < tr> < td colspan = QUOT; 4英寸align =" center">< input type =" submit" value =" Enter">< / td> < / tr> ; < / table> < / form> 我正在寻找的是关于如何制作第二页 此工作查询工作基于满足密码标准 元素 - 即:第二页 $密码= $ _POST [''密码'']; if(!$ password =''密码存储在数据库中''允许写)) { 否则echo PASSWORD必须匹配此用户的记录文件; } 我知道这不是代码确切地说,但我希望任何指针 实现它。再说一次,我不是在寻找一个完整的登录页面 ,因为它是一个内部网 - 只是想把数据写入进行更新的 用户(提供了符合密码标准)。 TIA ... 解决方案 _POST [''password'']; if(! I''m trying to password the ''update'' page of a MySQL database that runson a company intranet w/Apache and PHP. I don''t care about the''entry'' page to this database - just the ''update'' page and want thefive people (or so) who may be doing updates, to enter only a passwordand then write that password to the MySQL database field. On my entry page as the last part of my form, I''m using;<tr><td>Password:</td><td align="left"><input type="password"name="password" size="15" maxlength="15" value=""></td></tr><tr><td colspan="4" align="center"><input type="submit"value="Enter"></td></tr></table></form> What I''m looking for is pointers on how to make the second page ofthis work query work based on meeting the criteria of a passwordelement - i.e: 2nd page $password = $_POST[''password'']; if (!$password = ''password stored in database'' allow write)){else echo PASSWORD must match file on record for this user;}I know this isn''t the code precisely but am hopeful for any pointersin making it happen. Again, I''m not looking for a complete loginsince it IS an intranet - just looking to write to the database theuser who did the update (provided the password criteria was met).TIA... 解决方案 这篇关于密码PHP页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-02 22:17