【发布时间】:2014-02-21 07:17:01
【问题描述】:
我想要一个 .php 登录脚本,让它看起来像我的 HTML 网页的其余部分。
有人告诉我,我可以使用 .css 和这个脚本来做到这一点:
<link rel="stylesheet" type="text/css" href="style.css" />
问题是我如何处理该脚本?我需要获取 html 文件并使其与我的 .php 一起使用,以便我的登录页面与我的网站的其余部分匹配,而不仅仅是一个带有用户名和密码框的白页。谢谢。
<?php include('_header.php'); ?>
<form method="post" action="index.php" name="loginform">
<label for="user_name"><?php echo WORDING_USERNAME; ?></label>
<input id="user_name" type="text" name="user_name" required />
<label for="user_password"><?php echo WORDING_PASSWORD; ?></label>
<input id="user_password" type="password" name="user_password" autocomplete="off" required />
<input type="checkbox" id="user_rememberme" name="user_rememberme" value="1" />
<label for="user_rememberme">
<?php echo WORDING_REMEMBER_ME;
【问题讨论】:
-
您知道您可以将 HTML、CSS、JavaScript 和 PHP 混合在一个页面中吗?您可以使用它来组合 PHP 和 CSS。
-
拿起一本书,学习编码!
-
欢迎来到本站!这个问题真的没有意义。你到底有什么问题?
-
这看起来会更复杂,然后只需添加一个 .css 文件以使 .php 文件看起来相同。我正在使用预制的网站模板。
-
问题是我有一个登录脚本,它位于 .php 中,带有一个 MySql 数据库。我的网站是 HTML 格式,但我希望用户必须先登录我的网站,然后才能访问网站上的任何内容。我在 .php 中制作了登录脚本,但我不能将其添加到 HTML 页面脚本中。现在,当您访问我的网站时,我的主页是一个带有用户名和密码框的白屏。我希望我的登录屏幕看起来与我网站的其他部分相同。