les traigo el siguiente problema..
llevo días tratando de resolverlo, pero ya me está superando, por lo que acudo a la inteligencia colectiva
Código PHP :
<!DOCTYPE HTML>
<html lang="es">
<head>
<meta charset="utf-8" >
<title>Gestor de Congresales</title>
<link rel="stylesheet" href="css/stylesheet.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
</head>
<body>
<header>
<div id='header'>
<hgroup>
<h1>
<p>Gestor de Congresales, Tongoy 2012</p>
</h1>
</hgroup>
</div>
</header>
<nav>
<div id='success'>
<?
echo $_POST['nombres']." Editado Exitosamente.";}
?>
</div>
</nav>
<article>
<div id='contenido'>
<table class='bordered'>
<thead>
<tr>
<th>#</th>
<th>Rut</th>
<th>Paterno</th>
<th>Materno</th>
<th>Nombres</th>
<th>Nacimiento</th>
<th>Email</th>
<th>Telefono</th>
<th>Pagado</th>
<th>Editar</th>
</tr>
</thead>
<?php
$counter=1;
if ($filas> 0) {
while ($fetch = mysql_fetch_assoc($usarddbb)) {
?>
<form name="congresal" method="POST" action="admin.php" >
<tr>
<td><?php echo $counter; ?></td>
<td><input type='text' name='rut' <?php echo "value='".$fetch['rut']."'"; ?> /></td>
<td><input type='text' name='paterno' <?php echo "value='".$fetch['paterno']."'"; ?> /></td>
<td><input type='text' name='materno' <?php echo "value='".$fetch['materno']."'"; ?> /></td>
<td><input type='text' name='nombres' <?php echo "value='".$fetch['nombres']."'"; ?> /></td>
<td><input type='text' name='nacimiento' <?php echo "value='".$fetch['nacimiento']."'"; ?> /></td>
<td><input type='text' name='email' <?php echo "value='".$fetch['email']."'"; ?> /></td>
<td><input type='text' name='celular' <?php echo "value='".$fetch['celular']."'"; ?> /></td>
<td>$<input type='text' name='pagado' <?php echo "value='".number_format( $fetch['pagado'],0,',','.')."'" ; ?> /></td>
<td><input type='button' name='boton' class='btnedit' value='Editar' />
<input type='hidden' <?php echo "value='".$fetch['id']."'"; ?> /></td>
</tr>
</form>
<?php $counter=$counter+1;
}
?>
<?php echo"</table>";
}
else
{echo "No hay Congresales inscritos.";}
?>
</div>
</article>
<article>
<div id='view'>
<?php
if(isset($_POST['boton'])){
$nombre = $_POST['nombres'];
$nombre = $_POST['paterno'];
$nombre = $_POST['manterno'];
$nombre = $_POST['rut'];
$nombre = $_POST['nacimiento'];
$nombre = $_POST['email'];
$nombre = $_POST['celular'];
$nombre = $_POST['pagado'];
echo "Hola: ".$nombre;
}
else{
echo "ningun parametro";
}
?>
</div>
</article>
<footer>
<div id='footer'>
<p>footer</p>
</div>
</footer>
<script>
$(document).ready(function(){
$('#success').hide();
$('.btnedit').click(function () {
$('#success').show();
$('#success').fadeOut(1500);
});
});
</script>
</body>
</html>
Tengo ese código ( obviamente con String de conexión a la bbdd local), pero cuando hago click en los botones...
no hace nada... como que no funciona el formulario, no se que pasa..
hice un formulario aparte, en una hoja nueva y si me funciona...
Alguna idea???
Muchas Gracias de Ante Mano!!
