Ver Mensaje Individual
  #15 (permalink)  
Antiguo 21/02/2010, 10:44
Avatar de Most
Most
 
Fecha de Ingreso: marzo-2009
Mensajes: 642
Antigüedad: 15 años, 1 mes
Puntos: 6
Respuesta: cambiar boton al iniciar sesion

ya lo e echo como tu as dicho lo dejo para que lo veas lo que sale en el menu:

el iniciar.html lo e renombrado a iniciar.php



el codigo se a quedado asi:

INICIAR.PHP
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>

<
html lang="en" xmlns="http://www.w3.org/1999/xhtml">

  <
head>

    <
title>TodoEnlaces Descarga Directas Peliculasseriesjuegossoftware y Mas</title>

    <
meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
    <
link href="css-iniciar.css" rel="stylesheet" type="text/css" />

    <
style type="text/css">
<!--
.
Estilo2 {font-family"Times New Roman"Timesserif}
-->
    </
style>
</
head>
<
script type="text/javascript">
function 
setFocus(aField) {
document.forms[0][aField].focus();
}

function 
isAnEmailAddress(aTextField) {

if (
document.forms[0][aTextField].value.length<5) {
return 
false;
}
else if (
document.forms[0][aTextField].value.indexOf("@") < 1) {
return 
false;
}
else if (
document.forms[0][aTextField].value.length -
 
document.forms[0][aTextField].value.indexOf("@") < 4) {
return 
false;
}
else { return 
true; }
}

function 
isEmpty(aTextField) {
if ((
document.forms[0][aTextField].value.length==0) ||
 (
document.forms[0][aTextField].value==null)) {
return 
true;
}
else { return 
false; }
}

function 
validate() {

if (
isEmpty("username")) {
    
alert("Please fill your username.");
    
setFocus("username");
    return 
false;
}
if (
isEmpty("password")) {
    
alert("Please fill in your password.");
    
setFocus("password");
    return 
false;
}
return 
true;

}
</script>
  <body>


    <!--                  navigation                  -->


<ul id="nav">
if(isset($_COOKIE['loggedin'])) {
 
echo '<a href="cerrar-sesion.php">Cerrar Sesion</a>';
 
} else {
 
echo '<a href="iniciar-sesion.php">Iniciar Sesion</a>';
 
}
</ul>



    <!--                  main title                  -->


    <h1 id="title">&nbsp;</h1>


    <!--                  beginning of actual page                  -->


  <div id="wrapper">


      <!--                  this is the small black bar                  -->


        <div id="top">
          <ul>
          <li id="software"><a href="software.php">Software</a></li>
          <li id="series"><a href="series.php">Series</a></li>
          <li id="juegos"><a href="juegos.php">Juegos</a></li>
          <li id="musica"><a href="musica.php">Musica</a></li>
          <li id="peliculas"><a href="peliculas.php">Peliculas</a></li>
        </ul>
      </div>


      <!--                  space for ads                  -->


      <div id="adspace">
        <center><script type="text/javascript"><!--
google_ad_client = "pub-6582205853720100";
/* 468x60, creado 19/02/10 */
google_ad_slot = "5617050262";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
      </div>


      <!--                  image links                  -->
      <div id="main">
        <form action="iniciando.php" method="post" onsubmit="return validate()">
          <center>
            <table width="200" border="1">
              <tr>
                <td><table width="353" border="0">
                  <tr>
                    <td width="112" height="30">Usuario: </td>
                    <td width="231"><input type="text" name="username" size="20" /></td>
                  </tr>
                  <tr>
                    <td height="32">Contrase&ntilde;a:</td>
                    <td><input type="password" name="password" size="20" /></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><input name="submit" type="submit" value="Iniciar Sesion" /></td>
                    <td><a href="registrarse.html">
                      <input type="button" onclick=" location.href='registrarse.html' " value="Registrarse" name="boton" />
                    </a></td>
                  </tr>
                  <tr> </tr>
                </table></td>
              </tr>
            </table>
            </center>
          <p>
            <center>
              <script type="text/javascript"><!--
google_ad_client = "pub-6582205853720100";
/* 468x60, creado 19/02/10 */
google_ad_slot = "5617050262";
google_ad_width = 468;
google_ad_height = 60;
//-->
      </script>
              <script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
            </center>
          </p>
        </form>
      </div>
  </div>
  <!--                  footer                  -->


      <div id="footer"> La administracion de <a href="index.php">TodoEnlaces.org</a> no almacena contenido ilegal en su servidor</div>


</body>
</html> 
Te pongo todo en iniciar.php