Jump to content
MakeWebGames

Recommended Posts

Posted

Could someone help me with this code please?

 

<?phpsession_start();include "config.php";global $_CONFIG;define("MONO_ON", 1);require "class/class_db_{$_CONFIG['driver']}.php";$db=new database;$db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']);$db->connect();$c=$db->connection_id;$set=array();$settq=$db->query("SELECT * FROM settings");while($r=$db->fetch_row($settq)){$set[$r['conf_name']]=$r['conf_value'];}?><html><title>RIPPED</title><body style="background-color:CCCCCC;">
<table border="0" bgcolor='DEDEDE' align='center'>
 <tr style="background-color:AAAAAA;">     <td><center>RIPPED - Login</center></td>
 </tr>    <tr>
  <td><form action='authenticate.php' method='POST'>
      <input type='name' name='name'>

      <input type='password' name='password'>

      <center><input type="image" src="submit.jpg" width="84" height="26" /></center>
</td>
 </tr>
</body></html>

 

It doesn't want to work. :(

Thanks, CJ

Posted

Try expanding on that rather than saying it dosen't work, becuase that won't tell us anything about the problem. Tell us the error you getting, or what you trying to do and it's not working, that will help people in helping you becuase then they will know more about what exactly is happening.

- Redex

Posted

That's better, now i'm sure it will be easier for people to help you out with this code. Theres no need to be sorry, everyone makes mistakes, and most likeley if your new to MCcodes and WebDev'ng.

Posted
<html><title>RIPPED</title><body style="background-color:CCCCCC;">
<table border="0" bgcolor='DEDEDE' align='center'>
 <tr style="background-color:AAAAAA;">     <td><center>RIPPED - Login</center></td>
 </tr>    <tr>
  <td><form action='authenticate.php' method='POST'>

<label>Username:</label>     
<input name='username' type='text' id='username' />
       <label>Password:</label>
       <input name='password' type='password' id='password' />              
<center><input type="image" src="submit.jpg" width="84" height="26" /></center>
</td>
 </tr>
</body>
</html>

 

If needed i will code it into php but seems to work fine this way

  • 2 weeks later...
Posted

HTML fail much?

 

<?php
session_start();
include 'config.php';
global $_CONFIG;
define('MONO_ON', 1);
require 'class/class_db_'.$_CONFIG['driver'].'.php';
$db = new database;
$db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']);
$db->connect();
$c = $db->connection_id;
$set = array();
$settq = $db->query('SELECT * FROM settings');
while($r = $db->fetch_row($settq)) {
$set[$r['conf_name']] = $r['conf_value'];
}
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'>
<head>
<title><?php echo stripslashes(htmlspecialchars($set['game_name'])); ?></title>
</head>
<body style='background-color:#CCC;'>
<table border='0' style='background-color:#DDE;text-align:center;'>
<tr style='background-color:#AAA;'>
	<td style='text-align:center;'><?php echo stripslashes(htmlspecialchars($set['game_name'])); ?> - Login</td>
</tr>
<tr>
	<td>
	<form action='authenticate.php' method='post'>
		<input type='text' name='name' />


		<input type='password' name='password' />


		<input type='image' src='submit.jpg' style='width:84;height:26;' />
	</form>
	</td>
</tr>
</table>
</body>
</html>

 

XHTML valid, Transitional level.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...