A ya se
mira cambia esto
<button class="submit" type="submit">Guardar</button>
por
<input type="submit" name=Guardar" value=Guardar" style='width:110px; height:30px' >
y borra todo esto
Código PHP:
Ver original<?
//coneccion a la base de datos
$host = "localhost";
$usuario = "a10128ho_pinka";
$password = "dan809on";
$db = "a10128ho_pinka";
// termina la coneccion a la base de datos
if(empty($_POST[tours
])){
$_tours = $_POST[tour];
$_nombre = $_POST[nombre];
$_foto = $_POST[foto];
$_guia = $_POST[guia];
$_email = $_POST[email];
$_testimonios = $_POST[testimonios];
$sql = "INSERT INTO testimonio (tours, nombre, foto, guia, email, testimonios, fechates, fechacreada)
VALUES ('$_tours','$_nombre','$_foto','$_guia','$_email','$_testimonios','$_fecha','$_fechac') ";
}
else{
}
en el testimonio.php
pones el
Código PHP:
Ver original<?php
//coneccion a la base de datos
$host = "localhost";
$usuario = "a10128ho_pinka";
$password = "dan809on";
$db = "a10128ho_pinka";
// termina la coneccion a la base de datos
if($_POST['Guardar'])
{
$_tours = $_POST[tour];
$_nombre = $_POST[nombre];
$_foto = $_POST[foto];
$_guia = $_POST[guia];
$_email = $_POST[email];
$_testimonios = $_POST[testimonios];
$sql = "INSERT INTO testimonio (tours, nombre, foto, guia, email, testimonios, fechates, fechacreada)
VALUES ('$_tours','$_nombre','$_foto','$_guia','$_email','$_testimonios','$_fecha','$_fechac') ";
?>
<form id="registro" name="registro" method="post" action="aquilepones el index de tu pagina">
</form>
<?php
}
?>