Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/12/2015, 13:53
arturosoto
 
Fecha de Ingreso: diciembre-2015
Mensajes: 3
Antigüedad: 8 años, 11 meses
Puntos: 0
No me redirecciona header("Location:

Buenas tardes ,tengo problemas para cargar el header("Location: paypalpayout.php?confirm=".$confirmation1); ya cheque espacios, echo, lineas en blanco, ya cambie como mandar mi variable y nada, espero puedan ayudarme a solucionarlo.

Mi codigo es el siguiente:

<?php
define('INCLUDE_CHECK',1);
require "connect.php";
if(!$_POST)
{
if($_SERVER['HTTP_REFERER'])
header('Location : '.$_SERVER['HTTP_REFERER']);
exit;
}
?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="simpletip/jquery.simpletip-1.3.1.pack.js.txt"></script>
<script type="text/javascript" src="script.js"></script>
<Script language="javascript">
function checkKeyCode(evt)
{
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if(event.keyCode==116)
{
evt.keyCode=0;
return false
}
}
document.onkeydown=checkKeyCode;
</script>
<script language="javascript">
function Clickheretoprint()
{
var disp_setting="toolbar=yes,location=no,directories= yes,menubar=yes,";
disp_setting+="scrollbars=yes,width=900, height=400, left=100, top=25";
var content_vlue = document.getElementById("content").innerHTML;
var docprint=window.open("","",disp_setting);
docprint.document.open();
docprint.document.write('</head><body onLoad="self.print()" style="width: 900px; font-size:16px; font-family:arial;">');
docprint.document.write(content_vlue);
docprint.document.close();
docprint.focus();
}
</script>
<?php
ini_set('display_errors', '0');
$confirmation1 = $_POST['confirmation'];
$numnights=round($_POST['numnights']);
$arival=$_POST['start'];
$departure=$_POST['end'];
$firstname=$_POST['fname'];
$lastname=$_POST['lname'];
$address=$_POST['address'];
$city=$_POST['city'];
$country=$_POST['country'];
$email=$_POST['email'];
$contact=$_POST['contact'];
$user1=$_POST['user'];
$psw1=$_POST['psw'];
$cod1=$_POST['cod'];
$cod2=time();
$regalo=25;
$stat='active';
$roomid=$_POST['id'];
$qty=$_POST['qty'];
$price=$_POST['price'];
$roomname=$_POST['roomname'];
$N = count($roomid);
$ip_sqlq=mysql_query("select * from rooinventory where confirmation='$confirmation1' and arrival='$arival'and departure='$departure'");
$countq=mysql_num_rows($ip_sqlq);
if($countq==0)
{
for($i=0; $i < $N; $i++)
{
mysql_query("INSERT INTO rooinventory (room, qty, arrival, departure, status, confirmation) VALUES ('$roomid[$i]','$qty[$i]','$arival','$departure','$stat','$confirmation1') ");
$dddd=$ble;
$total=$total+$dddd;
}
mysql_query("INSERT INTO reservation (firstname, lastname, city, address, country, email, contact, users, psw, cod, cod1, arrival, departure, result, payable, status, confirmation, regalo) VALUES ('$firstname','$lastname','$city','$address','$cou ntry','email','$contact', '$user1','$psw1' ,'$cod1','$cod2','$arival','$departure','$numnight s','$total','$stat','$confirmation1','$regalo')");
header("Location: paypalpayout.php?confirm=".$confirmation1);
exit;
}
else{
header("Location: ../index.php");
}
?>