ive been finishing a school project which needs to get a response from a server so ive written some php code. Ive got everything to align up with tables but when I implement it, I get a Giant gap in code. Has anyone seen this before, I know its the tabs causing this but idk why they keep messing it up, ive tried to move them, but everything in them and more with no luck. below is the outcome of this code,
thank you for your help. Code’s outcome
<?php
// create short variable names
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$address = $_POST['address'];
$city = $_POST['city'];
$zip = $_POST['zip'];
$state = $_POST['state'];
$outdate = $_POST['outdate'];
$indate = $_POST['indate'];
$numberofpeople = $_POST['numberofpeople'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$cardtype = $_POST['cardtype'];
$cardnum = $_POST['cardnum'];
$specialrequests = $_POST['specialrequests'];
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
?>
<html>
<body>
<?php
//displays what the user put in the form by using the vairables
echo "";
echo 'Thank you '
.$fname.' '.$lname.' for your Reservation
';
echo 'The following is the infomation you entered:
';
echo "Number & Street $address
";
echo "City $city
";
echo "ZipCode $zip
";
echo "State $state
";
echo "Check-In Date $indate
";
echo "Check-out Date $outdate
";
echo "Number of People $numberofpeople
";
echo "Phone $phone
";
echo "Email $Email
";
echo "Card-Type $cardtype
";
echo "Card-Number $cardnum
";
echo "Special Requests $specialrequests
";
echo "
";
?>
</body>
</html>