Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/05/2008, 16:31
ryuk
 
Fecha de Ingreso: septiembre-2007
Mensajes: 83
Antigüedad: 16 años, 7 meses
Puntos: 0
Respuesta: Saltar a otra pagina

bueno para solucionar tu problema podrias imprimir tus varables en esa pagina... o redireccionar a una nueva pagina pasando las variables a insertar

Código PHP:
function GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue "")

{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;

switch (
$theType) {
case 
"text":
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
break;
case 
"long":
case 
"int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case 
"double":
$theValue = ($theValue != "") ? "'" doubleval($theValue) . "'" "NULL";
break;
case 
"date":
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
break;
case 
"defined":
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
break;
}
return 
$theValue;
}

$editFormAction $_SERVER['PHP_SELF'];
if (isset(
$_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset(
$_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL sprintf("INSERT INTO animales (id_perro, `nombre`, area,
VALUES (%s, %s, %s)"
,

GetSQLValueString($_POST['id_perro'], "int"),
GetSQLValueString($_POST['nombre'], "text"),
GetSQLValueString($_POST['area'], "text"));

mysql_select_db($database_infoper$infoper);
$Result1 mysql_query($insertSQL$infoper) or die(mysql_error());

header("Location: agradecimentos.php?valor1=$_POST['id_perro']&...")
}

?> 
seria mas o menos asi...
y cuando lo recojas en la otra pagina seria asi...

Código PHP:
 print "Primer valor:"." ".$_REQUEST['valor1']; 
la idea seria mas o menos asi