MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/public_html/ingresar_codeudor_sol.php
<?php 
require_once("mainfile.php");
include ("config.php");
global $dbi;

if(isset($_POST["guardar"]))
{
	
	function Conectarse()
	{
	   if (!($link=@mysql_connect("localhost","asjudine","as2006")))
	   {
		  echo "Error conectando con el servidor.";
		  exit();
	   }
	   $dbname = "asjudinet";
	   if (!@mysql_select_db($dbname,$link))
	   {
		  echo "Error seleccionando la base de datos.";
		  exit();
	   }
	   return $link;
	}
	Conectarse();
	

	if($cedul!=' ')
	{
	  mysql_query ("INSERT INTO datos_codeudor(cedula_titular, cedula, nombre, direccion, telefono, celular, email) VALUES ('" . $_POST["cedul"]  . "', '" . $_POST["cedco"]  . "', '" . $_POST["apeco"]  . "', '" . $_POST["dirco"]  . "', '" . $_POST["telco"]  . "', '" . $_POST["celco"]  . "', '" . $_POST["emaco"]  . "')");
 
	 echo "<script>alert('Los datos del codeudor fueron grabados correctamente');</script>";
	 // echo "<SCRIPT LANGUAGE='javascript'>window.location.href='solicitud_cre_jur.php'	
	}else{
		 echo "<script>alert('Debe Buscar la cedula en la solicitud para poder ingresar DATOS CODEUDOR');</script>";	

	}
	  
}

?>

<!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>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
.Estilo66 {	font-size: 12px;
	font-weight: bold;
}
.est_cont2 {	font-family: Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	color: #2B39EC;
	background-color: #F0F5CF;
	height: 18px;
	width: auto;
	border: thin solid #FABF85;
}
.est_cont5 {	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	font-style: normal;
	font-weight: normal;
	background-color: #EDFAF4;
	margin: 2px;
	padding: 2px;
	height: auto;
	width: auto;
	border: thin groove #E9AAF0;
	color: #C72350;
}
.col_cre2 {	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: bold;
	color: #F92F0B;
	background-color: #B3D9F0;
	height: auto;
	width: auto;
	border: medium groove #FC9227;
}
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <div align="center">
    <table width="624" height="62" border="1" class="est_cont5">
      <caption>
      <span class="Estilo66"><br />
        DATOS CODEUDOR </span>
      </caption>
      <tr>
        <th width="107" height="16" scope="col"><div align="right"><strong>Apellidos y Nombres:</strong></div></th>
        <th width="334" scope="col"><div align="left">
          <input name="apeco" type="text" class="est_cont2" id="apeco" value="<?php echo $apesco ?>" size="66" maxlength="65" />
        </div></th>
        <th width="49" scope="col"><div align="right"><strong>Cedula:</strong></div></th>
        <th width="104" scope="col"><div align="left">
          <input name="cedco" type="text" class="est_cont2" id="cedco" value="<?php echo $cedulaco ?>" size="20" maxlength="20" />
        </div></th>
      </tr>
      <tr>
        <td height="16"><div align="right"><strong>Dreccion :</strong></div></td>
        <td><div align="left">
          <input name="dirco" type="text" class="est_cont2" id="dirco" value="<?php echo $direccionco ?>" size="50" maxlength="50" />
        </div></td>
        <td><div align="right"><strong>Telefono:</strong></div></td>
        <td><div align="left">
          <input name="telco" type="text" class="est_cont2" id="telco" value="<?php echo $telefonoco ?>" size="20" maxlength="20" />
        </div></td>
      </tr>
      <tr>
        <td height="18"><div align="right"><strong>Email:</strong></div></td>
        <td><div align="left">
          <input name="emaco" type="text" class="est_cont2" id="emaco" value="<?php echo $emailco ?>" size="35" maxlength="35" />
        </div></td>
        <td><div align="right"><strong>Celular:</strong></div></td>
        <td><div align="left">
          <input name="celco" type="text" class="est_cont2" id="celco" value="<?php echo $celularco ?>" size="20" maxlength="20" />
        </div></td>
      </tr>
      </table>
    <p>
      <input name="guardar" type="submit" class="col_cre2" id="guardar" value="Guardar"  />
    </p>
  </div>
</form>
</body>
</html>