Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/03/2009, 03:02
gomminola
 
Fecha de Ingreso: mayo-2008
Mensajes: 253
Antigüedad: 16 años, 9 meses
Puntos: 8
integrar 2 archivos php en 1

Hola Maestros, estoy 1 tanto agobiada, dado que llevo unos dias atareada con esto y ya necesito que me ayudeis. ! miembro de este foro me aconsejo esta web para que me descargara un codigo libre de un libro de visitas. Dicho libro contiene 2 archivos que os pongo ahora:

1-. index.php

Código PHP:
<html><head><script>function disableselect(e)
{  return false  }
function reEnable()
{  return true  }
//Si es Internet Explorer 4 o superior
document.onselectstart=new Function ("return false")
//si es Netscape6
if (window.sidebar)
{  document.onmousedown=disableselect
   document.onclick=reEnable  }</script><style>body         { font-family: tahoma; font-size: 8 pt }
.vol         { color: #0000FF }
.vol:hover   { text-decoration: underline; color: #800000 }
.mas         { color: #000000 }
.mas:hover   { text-decoration: none; color: #888888 }
a            { color: #FF0000; text-decoration: none }
a:hover      { color: #000080; text-decoration: underline }
table         { font-size: 8pt }
.boton       { background-color: #00B4FF; color: #FFFFFF; font-family: 
               verdana, arial, helvetica; font-size: 8.5pt; 
               border-left: 2px Solid #00D6FF; border-right: 2px Solid #0092DD; 
               border-top: 2px Solid #00D6FF; border-bottom: 2px Solid #0092DD }
.art         { clear: none; float: none; height: 100%; width: 100%; color: #FFFFFF; 
               text-decoration: none }
.art:hover   { background-color: #0099FF; clear: none; float: none; height: 100%; align: 
               center; width: 100%; color: #000080; text-decoration: none }
.nombre { color: #000088; text-decoration: none }
.nombre:hover { text-decoration: underline }
</style><title>Ommadawn , tu oportunidad de conocer a fondo a Mike Oldfield</title></head>
<body topmargin="0" leftmargin="0"><center>
</center>
  <center>
  </center>
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td width="75%" valign="top" bgcolor="#FFE6FF">
        <center>
          <table border="0" cellpadding="0" cellspacing="0" width="60%" height="43">
            <tr>
              <td width="100%" height="43"><fieldset><legend></legend>
                <label>
        <center>
          <center><table cellpadding="0" cellspacing="0" width="90%" border="0"><tr><td width="100%">
              <div align="center">
                <form method="GET" action="insertar.php"><table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#CCCCFF">
                  <tr>
                    <td width="100%">
                      <div align="center">
                        <table border="0" cellpadding="2" cellspacing="1" width="100%">
                          <tr>
                            <td width="100%" colspan="2" bgcolor="#CCCCFF">
                              <p align="center"><b><font size="2">Deja tu comentario</font></b></td>
                          </tr>
                        </center></center>
        </center>
                  </center>
                  <tr>
                    <td width="34%" bgcolor="#E6E6FF">
                      <p align="right">Tu nombre</td>
  <center>
        <center>
        <center>
          <center>
          <td width="66%" bgcolor="#E6E6FF"><input type="text" name="nombre" size="20" style="font-family: 'Trebuchet MS', Arial; font-size: 8 pt; color: #000000; border: 1 solid #000080"></td>
          </tr>
          </center></center>
        </center>
                  </center>
                  <tr>
                    <td width="34%" bgcolor="#E6E6FF">
                      <p align="right">Tu email</td>
  <center>
        <center>
        <center>
          <center>
          <td width="66%" bgcolor="#E6E6FF"><label><input type="text" name="email" size="20" style="font-family: 'Trebuchet MS', Arial; font-size: 8 pt; color: #000000; border: 1 solid #000080"></label></td>
          </tr>
          </center></center>
        </center>
                  </center>
                  <tr>
                    <td width="34%" bgcolor="#E6E6FF">
                      <p align="right">Comentario</td>
  <center>
        <center>
        <center>
          <center>
          <td width="66%" bgcolor="#E6E6FF"><textarea rows="2" name="comentario" cols="50" style="font-family: 'Trebuchet MS', arial; font-size: 8 pt; color: #000000; border: 1 solid #000080"></textarea></td>
          </tr>
          </center></center>
        </center>
                  </center>
                  <tr>
                    <td width="34%" bgcolor="#E6E6FF">
                      <p align="right">Opinión sobre la web</td>
  <center>
        <center>
        <center>
          <center>
          <td width="66%" bgcolor="#E6E6FF">
            <div align="center">
              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                  <td width="20%" align="center"><img border="0" src="perfecta.gif" width="15" height="15"><br>
                    <input type="radio" value="perfecta" checked name="opinion"></td>
                  <td width="20%" align="center"><img border="0" src="mbuena.gif" width="15" height="15"><br>
                <label>
        <input type="radio" value="mbuena" name="opinion"></label></td>
                  <td width="20%" align="center"><img border="0" src="buena.gif" width="15" height="15"><br>
                    <label><input type="radio" value="buena" name="opinion"></label></td>
                  <td width="20%" align="center"><img border="0" src="mala.gif" width="15" height="15"><br>
                    <label><input type="radio" value="mala" name="opinion"></label></td>
                  <td width="20%" align="center"><img border="0" src="mmala.gif" width="15" height="15"><br>
                    <label><input type="radio" value="mmala" name="opinion"></label></td>
                </tr>
              </table>
            </div>          </td>
          </tr>
        </center></center></center></center>
                  <tr>
                    <td width="34%" bgcolor="#E6E6FF">
                      <p align="right">Confirmar</td>
          <td width="66%" bgcolor="#E6E6FF">
            <p align="left"><input type="submit" value="E N V I A R" style="font-family: 'Trebuchet MS', Arial; font-size: 8 pt; color: #000000; background-color: #FFFFFF; border: 1 solid #000080">
            <label><input type="reset" value="B O R R A R" style="font-family: 'Trebuchet MS', Arial; font-size: 8 pt; color: #000000; background-color: #FFFFFF; border: 1 solid #000080"></label></td>
          </tr>
          </table>
  </div>                    </td>
                  </tr>
                </table><input type="hidden" name="fecha" value="<? echo(date("d/m/Y")); ?>"></form>
              </div>
        <p align=justify><? include("index.txt"?></p>
 </td></tr></table></label></fieldset>*</td>
            </tr>
          </table>      </td>
    </tr>
  </table>
  <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td width="100%" bgcolor="#CCCCFF">
          <p align="center">Prohibida la copia total o parcial de esta web sin
          el consentimiento previo del autor.</td>
      </tr>
    </table>
    </center>
  </div>
</body></html>