Robert Elsdon Posted May 5, 2008 Share Posted May 5, 2008 I want the background color to be #666666 and the font to be Veranda size 2 This is the full login code! <?php session_start(); // dBase file include "dbConfig.php"; if ($_GET["op"] == "login") { if (!$_POST["username"] || !$_POST["password"]) { die("You need to provide a username and password."); } // Create query $q = "SELECT * FROM `dbUsers` " ."WHERE `username`='".$_POST["username"]."' " ."AND `password`=PASSWORD('".$_POST["password"]."') " ."LIMIT 1"; // Run query $r = mysql_query($q); if ( $obj = @mysql_fetch_object($r) ) { // Login good, create session variables $_SESSION["valid_id"] = $obj->id; $_SESSION["valid_user"] = $_POST["username"]; $_SESSION["valid_time"] = time(); // Redirect to member page Header("Location: home.php"); } else { // Login not successful die("Sorry, You have enterd a wrong Username or Paswword please try again and be more carefull with your spelling!"); } } else { echo "<center>"; echo "<form action=\"?op=login\" method=\"POST\">"; echo "Username: <input name=\"username\" size=\"15\"><br />"; echo "Password: <input type=\"password\" name=\"password\" size=\"8\"><br />"; echo "<input type=\"submit\" value=\"Login\">"; echo "</form>"; } ?> <?php $text = "http://ultimateravers.net/register.php"; echo ereg_replace("http://([a-zA-Z0-9./-]+)$", "<a href=\"\\0\">\\0</a>", $text); ?> <br /> <?php $text = "Click the link above to register"; echo ereg_replace("http://([a-zA-Z0-9./-]+)$", "<a href=\"\\0\">\\0</a>", $text); ?> Please help! Link to comment https://forums.phpfreaks.com/topic/104174-solved-how-can-i-chnage-the-background-colour-and-the-font-of-this-file/ Share on other sites More sharing options...
trq Posted May 5, 2008 Share Posted May 5, 2008 It is likely that ths file is included into another which contains your html document definition and <head> tag. Within the <head> tag you can define your css. Your question really isn't php related at all. Link to comment https://forums.phpfreaks.com/topic/104174-solved-how-can-i-chnage-the-background-colour-and-the-font-of-this-file/#findComment-533311 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.