Jump to content
MakeWebGames

please can someone change from html to php


Tylor
 Share

Recommended Posts

please can someone do this for me as ive been working on it and i really like it

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GANGSTER-LEGENDS | LOGIN PAGE</title>
</head>
<link href="includes/in.css" rel="stylesheet" type="text/css" />
<style type="text/css">

<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #282828;
font-weight: bold;
}
body {
font-family: Verdana;
font-size: 10px;
font-style: light;
font-weight: 500;
font-variant: light;
color: #000001;
background-image: url(bg.png);
}
#Layer1 {
position:absolute;
width:327px;
height:44px;
z-index:1;
left: 450px;
top: 156px;
}
#Layer2 {
position:absolute;
width:1001px;
height:37px;
z-index:2;
left: 2px;
top: 158px;
}
#Layer3 {
position:absolute;
width:482px;
height:26px;
z-index:3;
left: 266px;
top: 469px;
}
#Layer4 {
position:absolute;
width:292px;
height:21px;
z-index:4;
left: 449px;
top: 542px;
}
a:link {
text-decoration: none;
color: #282828;
font-weight: light;
}
a:visited {
text-decoration: none;
color: #282828;
font-weight: light;
}
a:active {
text-decoration: none;
color: #282828;
font-weight: light;
}
a:hover {
color: #282828;
font-weight: light;
text-decoration: flash;
}
#Layer5 {
position:absolute;
width:457px;
height:16px;
z-index:4;
left: 314px;
top: 407px;
}
.style8 {color: #282828}
.style30 {color: #282828; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
#what {	padding: 0px;
margin: 0px;
position: absolute;
width: 143px;
height: 143px;
right: 0;
top: 0;
}



-->

</style>

<head>

<title>Gangster-Legends | Login</title>

<link href="includes/in.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<body background="bg.png">
<div align="center">
<body background="bg.png">


 <form name="form1" method="post" action="">




   <p align="center">
     <map name="Map" id="Map2">

     </map>
     [img=http://i38.tinypic.com/2d7u5v.png]
<map name="Map23">
 <area shape="rect" coords="158,6,257,46" href="register.php">
</map>
     </map>
     <map name="MapMap" id="Map22">

     </map>
     <map name="Map23Map">
       <area shape="rect" coords="351,6,501,47" href="ss.php">
     </map>


   </p>
   <div id="Layer1">
     <div align="right">
       <p align="right" class="style8"><span class="style30"><font color=red>[b]<center></center>[b]</font><font color=white>[b]<center></center>[b]</font></span>




        USERNAME : 

         <input name="username" type="text" id="username" value="" class="inputbg" maxlength="40" />







           PASSWORD
           : 

           <input name="password" type="password" id="password" value="" class="inputbg" maxlength="40" />





         [img=http://i33.tinypic.com/2i0sltj.png]


         PLEASE ENJOY THE GAME AS MUCH AS POSSIBLE



       </p>
     </div>
   </div>
 </form>
<body background="bg.png">
</body>
</html>
Link to comment
Share on other sites

Re: please can someone change from html to php

I actually had a play with this script yesterday couldnt understand though why the LOGIN pic was seperate from the background image.

You have your MAP with coords so why not just use that for all the links even the login button the text needed to be White as its on a black background but over all i would have just left the links as html.

make the text white take a screen shot of the entire new jpg with login sections as well then just map it out...

Link to comment
Share on other sites

Re: please can someone change from html to php

The general rule for javascript and html concerning " and ' is that you use " as the outer quotes and ' as the inner quotes.

 

<span class="syntaxdefault"></span><span class="syntaxkeyword"><</span><span class="syntaxdefault">a href</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"javascript:self.do_something('option_one', 'option_two')"</span><span class="syntaxkeyword">></span><span class="syntaxdefault">Click me</span><span class="syntaxkeyword">!</</span><span class="syntaxdefault">a</span><span class="syntaxkeyword">> </span><span class="syntaxdefault"></span>

 

It's generally accepted that " be used around tag attribute values, if you use quotes at all.

 

As for making javascript work by simply changing " to ' is misguided to say the least. Javascript doesn't make any distinction, as far as I know, to either of those two quote types. Javascript does not allow variables inside quotes, so that's not in play. I don't know specifically if \n works inside '\n' as I haven't specifically tested it, but I suspect it does.

So, which quote you use really doesn't matter unless you're concerned with following standard conventions.

Link to comment
Share on other sites

  • 1 month later...

Re: please can someone change from html to php

Like he said, just change the extenssion to .php

Now, your HTML in the page does not have to be changed, Neither does your Java..

When you insert php into the page,

Just wrap it with the php tages..

Just an example...What I did was the title so you will have to scroll down..

 

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GANGSTER-LEGENDS | LOGIN PAGE</title>
</head>
<link href="includes/in.css" rel="stylesheet" type="text/css" />
<style type="text/css">

<!--
body,td,th {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10px;
  color: #282828;
  font-weight: bold;
}
body {
  font-family: Verdana;
  font-size: 10px;
  font-style: light;
  font-weight: 500;
  font-variant: light;
  color: #000001;
  background-image: url(bg.png);
}
#Layer1 {
  position:absolute;
  width:327px;
  height:44px;
  z-index:1;
  left: 450px;
  top: 156px;
}
#Layer2 {
  position:absolute;
  width:1001px;
  height:37px;
  z-index:2;
  left: 2px;
  top: 158px;
}
#Layer3 {
  position:absolute;
  width:482px;
  height:26px;
  z-index:3;
  left: 266px;
  top: 469px;
}
#Layer4 {
  position:absolute;
  width:292px;
  height:21px;
  z-index:4;
  left: 449px;
  top: 542px;
}
a:link {
  text-decoration: none;
  color: #282828;
  font-weight: light;
}
a:visited {
  text-decoration: none;
  color: #282828;
  font-weight: light;
}
a:active {
  text-decoration: none;
  color: #282828;
  font-weight: light;
}
a:hover {
  color: #282828;
  font-weight: light;
  text-decoration: flash;
}
#Layer5 {
  position:absolute;
  width:457px;
  height:16px;
  z-index:4;
  left: 314px;
  top: 407px;
}
.style8 {color: #282828}
.style30 {color: #282828; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
#what {   padding: 0px;
  margin: 0px;
  position: absolute;
  width: 143px;
  height: 143px;
  right: 0;
  top: 0;
}



-->

</style>

<head>
//For example, Im not going to recode page, just changing the title...
//So I just wrap this.
<?php    //This is the opening php tag
$getit = sprintf("SELECT name FROM something");
   $doit = mysql_query($getit);
       $name = mysql_fetch_array($doit);
echo "
<title>".$name['name']."</title>";
?> 

<link href="includes/in.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<body background="bg.png">
<div align="center">
<body background="bg.png">


 <form name="form1" method="post" action="">




   <p align="center">
     <map name="Map" id="Map2">

     </map>
     [img=http://i38.tinypic.com/2d7u5v.png]
<map name="Map23">
 <area shape="rect" coords="158,6,257,46" href="register.php">
</map>
     </map>
     <map name="MapMap" id="Map22">

     </map>
     <map name="Map23Map">
       <area shape="rect" coords="351,6,501,47" href="ss.php">
     </map>


   </p>
   <div id="Layer1">
     <div align="right">
       <p align="right" class="style8"><span class="style30"><font color=red>[b]<center></center>[b]</font><font color=white>[b]<center></center>[b]</font></span>




        USERNAME :

         <input name="username" type="text" id="username" value="" class="inputbg" maxlength="40" />







           PASSWORD
           :

           <input name="password" type="password" id="password" value="" class="inputbg" maxlength="40" />





         [img=http://i33.tinypic.com/2i0sltj.png]


         PLEASE ENJOY THE GAME AS MUCH AS POSSIBLE



       </p>
     </div>
   </div>
 </form>
<body background="bg.png">
</body>
</html>

 

Of course thats just an example, I know that will give you errors, because of the comments, but Hopefully it helps :)

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...