Hi, i´ve got a flash form that send inserted data to a
page called insert.php and after sending data to the
mysql database the page reloads the flash form for a
new entry, but it reloads it on a new page i want to
reloadit on the same page that i ´ve enter the
previous entry. I´m posting the relevant parts of the
php code:

<?php

//defino variables
$apellidoclientesnuevos = $_POST['apellido'];
$nombreclientesnuevos = $_POST['nombre'];
$telefonoclientesnuevos = $_POST['telefono'];
$dniclientesnuevos = $_POST['dni'];
$fechacitaclientesnuevos = $_POST['fecha'];
$horacitaclientesnuevos = $_POST['hora'];
$abogadoclientesnuevos = $_POST['abogado'];
$asuntoclientesnuevos = $_POST['asunto'];
$dondeclientesnuevos = $_POST['donde'];
$URL="http://www.myform.php";;

//establece conección con el servidor y abre la base
de datos

$db = mysql_connect("90.0.0.2", "javier", "315/95");

mysql_select_db("clientes",$db);

//manda query a la base de datos

$sql = "INSERT INTO clientesnuevos (1,2,3,4,5,6)
VALUES ('$1','$2','$3','$4','$5','$6')";
$result = mysql_query($sql) or die("Error in query: " 
. mysql_error()); 

header ("Location: $URL");
exit;
?>

Any idea how can i do this??

Thanks
Javier


        
        
                
___________________________________________________________
100mb gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to