First time w/ PHP: Trying to get my form to work

I’m trying to create a booking form and I’m not exactly sure what I’m doing wrong. When I try to submit the form none of the fields that I fill in come up. Can anyone help me out with what I’m doing wrong here? I’m sure it’s something dumb since this is my first time trying to create a form. This is what I have so far…

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <link type="text/css" href="styledform.css" rel="stylesheet" />
<title>Palindrome Entertainment Booking Form</title>
<style type="text/css">
#apDiv1 {
	position:absolute;
	width:529px;
	height:80px;
	z-index:1;
	background-image: url(images/GRADIENT6.jpg);
	background-repeat: repeat-x;
}
</style>
  </head>
<body>

    <h1 class="header">Interested in booking an event?</h1>
<h2 class="head2">Fill out and submit the form below.</h2>

<form id="beanform" action="myform.php" method="post">
<table>
      
       
	

        <tr>
         
            <td><p><img src="images/Palindrome_280x111_Trans.png" alt="logo" width="280" height="111" hspace="20" longdesc="images/Palindrome_280x111_Black.png" /></p>
              <p>&nbsp; </p>
              <table>
                <tr>
                  <td>Name:</td>
                  <td>
                    <input type="text" name="name" id="name" value="" />
                  </td>
                </tr>
                <tr>
                  <td>Event:</td>
                  <td>
                    <input type="text" name="event" id="event" value="" />
                  </td>
                </tr>
                <tr>
                  <td>Location:</td>
                  <td>
                    <input type="text" name="location" id="location" value="" />
                  </td>
                </tr>
                 <tr>
           
          <th>Type of Entertainment:</th>
          <td>
           <select name="entertainment">
             <option value="Mr. Mister Miyagi">Mr. Mister Miyagi</option>
             <option value="Mr. Mister Mustard">Mr. Mister Mustard</option>
             <option value="Dammit Janet">Dammit Janet</option>
             <option value="Spiders from Bars">Spiders from Bars</option>
             <option value="Knyght Ryder">Knyght Ryder</option>
             <option value="90s210">90s210</option>
             <option value="Smart Patrol">Smart Patrol</option>
             <option value="Spirit of Zeppelin">Spirit of Zeppelin</option>
             <option value="DJ">DJ</option>
             <option value="Comedian">Comedian</option>
             <option value="Band/DJ">Band/DJ</option>
             <option value="Other">Other</option>
          </select>
          </td>
        </tr>
                <tr>
                  <td>Set Length:</td>
                  <td>
                    <input type="text" name="setlength" id="setlength" value="" />
                  </td>
                </tr>
                <tr>
                  <td>PA/Sound Engineer Provided?</td>
                  <td>
                    <input type="text" name="provided" id="provided" value="" />
                  </td>
                </tr>
                 <tr>
                  <td>Email:</td>
                  <td>
                    <input type="text" name="email" id="email" value="" />
                  </td>
                </tr>
              </table>
          </td>
	  </tr>
            <th>Comments:</th>
          <tr>
            
            <td>
              <textarea name="comments" id="comments" rows="10" cols="48"></textarea>
            </td>
          </tr>

          <tr>
	    <th></th>
       <td>
         <input type="submit" value="Submit Form" />
       </td>
          </tr>
        </table>
      <div id="apDiv1"></div>
</form>
</body>
</html>


and my PHP:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
Your name is: <?php echo $_POST['name']; ?><br />
Your event: <?php echo $_POST['event']; ?><br />
Your location is: <?php echo $_POST['location']; ?><br />
Type of Entertainment: <?php echo $_POST['entertainment']; ?><br />
<br />

Set Length: <?php echo $_POST['setlength']; ?><br />
PA/Sound provided: <?php echo $_POST['provided']; ?><br />
Your email: <?php echo $_POST['email']; ?><br />
<br />

Comments:<br />
<?php echo $_POST['comments']; ?>

</body>
</html>

The most important info to supply is what’s in myform.php, which you haven’t indicated. That’s a file that should contain all the PHP instructions.

EDIT: ah sorry, I didn’t realize the second block was that file.

Assuming the 2nd block of code you provided actually is named myform.php and is in the same folder as your html form, then I see no reason why it shouldn’t work.

Agreed. I’d suggest checking if php is properly set up.

On your myform.php page add the following…

echo "php works!";

You could also add…

echo "<pre>";print_r($_POST); echo "</pre>";

That second code block will show you all your key-value pairs posted to the page in an easy to read format. You could use var_dump() instead, I just find pre tags around print_r easier to digest.