the below script worked without any errors before I upgraded to php5
I still am not getting any errors in the error log but the output is not displaying. It finds the beginning includes ie the login and header but the rest it does not find.
Thanks in advance
Code:
<?php include "cust_logged_in.php"; ?>
<script type="text/javascript">
<!--
function cFormular()
{
if(document.daten.nname.value == "")
{
alert("<? echo $t_forms['name_req'] ?>");
document.daten.nname.focus();
return false;
}
if(document.daten.strasse.value == "")
{
alert("<? echo $t_forms['adress_req'] ?>");
document.daten.strasse.focus();
return false;
}
if(document.daten.tel.value == "")
{
alert("<? echo $t_forms['tel_req'] ?>");
document.daten.tel.focus();
return false;
}
var Wert=document.daten.preis.value;
Wert = Wert.replace(/,/,".");
if(isNaN(Wert) == true)
{
alert(Wert + " <? echo $t_forms['no_number'] ?>");
document.daten.preis.focus();
return false;
}
}
//-->
</script>
<?php
include $include_path."cust_cc_kopf.php";
include $include_path."links.php";
/* include $include_path."clsencrypt.php"; */
$andatum = $_GET['andatum'];
$abdatum = $_GET['abdatum'];
$zimmer = $_GET['zimmer'];
$stadt = $_GET['stadt'];
$plz = $_GET['plz'];
$ort = $_GET['ort'];
If ($knr!="")
{
$daten = suche('knr', $knr);
$i=0;
$daten[$i+1][0]= $row['knr'];
$anrede= $daten[$i+1][1];
$titel =$daten[$i+1][2];
$nname=$daten[$i+1][3];
$vname=$daten[$i+1][4];
$strasse= $daten[$i+1][5];
$plz=$daten[$i+1][6];
$ort=$daten[$i+1][7];
$stadt=$daten[$i+1][8];
$land=$daten[$i+1][9];
$tel=$daten[$i+1][10];
$fax=$daten[$i+1][11];
$mail=$daten[$i+1][12];
$partner=$daten[$i+1][13];
$sprache=$daten[$i+1][14];
$stamm=$daten[$i+1][15];
$bes=$daten[$i+1][16];
}
?>
<table width="80%" border="0" align="center" >
<!-- ########### Guest Information ###################-->
<?php
cust_startover();
if ($knr!="")
{
echo '<form name="daten" action="cust_reserviert.php?alter_kunde=ja" method="post" onSubmit="return cFormular()">';
$schreiben="readonly";
include $include_path."cust_form_gdaten.php";
echo '</table><table border="0" cellspacing="0" cellpadding="0" align="center" width="80%">';
include $include_path."cust_form_zdaten.php";
}else{
if ($eingabe==1)
{
echo '<form name="daten" action="cust_reserviert.php" method="post" onSubmit="return cFormular()">';
include $include_path."cust_form_gdaten.php";
echo '</table><table border="0" cellspacing="0" cellpadding="0" align="center" width="80%">';
include $include_path."cust_form_zdaten.php";
}
}
if ($eingabe==1 OR $knr!="")
{
echo '
<tr id="tr1">
<td colspan="2" align="center">By completing this form, you are aware that we will contact you
either via telephone or email to confirm your reservation and take a deposit to hold your desired '.$t_book['room'].'.
</td>
</tr>
<tr>
<td colspan="2" align ="center">
<input type="submit" value="'.$t_forms['book'].'">
</td>
</tr>
<input type="hidden" value="'.$knr.'" name="knr">
</form>';
}
if ($eingabe!=1)
{
echo'</table><div align="center">
<form action="details.php" method="post">
<input type="input" size="10" maxlenth="10" name="resnr">
<input type="submit" value="'.$t_forms['cust_searchres'].'">
</form></div>
</body>
</html>'
;}
?>
Thanks in advance
Comment