0 Answer
  • 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

PHP tables causing issues

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"
"; echo"
"; echo"
"; echo"
"; echo"
"; echo"
"; echo"
"; echo"
"; echo"
"; echo"
"; echo"
"; echo"
"; echo"
Number & Street$address
City$city
ZipCode$zip
State$state
Check-In Date$indate
Check-out Date$outdate
Number of People$numberofpeople
Phone$phone
Email$Email
Card-Type$cardtype
Card-Number$cardnum
Special Requests$specialrequests
"
; ?> </body> </html>