Images displaying on form but not information to be filled out by user

I am doing a rsvp form for school i valadated my form and have no errors but you can see whole form in dreamweaver but when i go to test it in dreamweaver only images are showing my professor cannot figure out what is going on can someone help me please here is the code i am using.

<?php

$firstname ="";
$lastname ="";
$phone ="";
$email ="";
$attending_0 ="";
$attending_1 ="";
$guest_0 ="";
$guest_1 ="";
$foodchoice ="";
$comment ="";

?>

<!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>New Year RSVP</title>
<link href="rsvp.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container">
<div align="center"><img src="happy-new-year.jpg" width="300" height="300" /><br />
<h1>New Years Party Rsvp</h1>
<form action="process_rsvp.php"method="post"enctype="multipart/form-data"id='customform">
<h3><strong>Please fill out the rsvp form to let us know if you are attending this years new years party also upload a picture that can be shared at the party:</strong></h3>
<br/>

<table>
  <tr>
    <td><label for="firstname"><b>First Name*</b></label></td>
    <td><input name="firstname" type="text" size="20" id="firstname" value="<?php echo $firstname; ?>"/></td>
  </tr>
  <tr>
    <td><label for="lastname"><b>Last Name*</b></label></td>
    <td><input name="lastname" type"text" size"20" id="lastname" value="<?php echo $lastname; ?>"/></td>
  </tr>
  <tr>
    <td><label for="phone"><b>Phone*</b></label></td>
    <td><input name="phone" type"text" size"20" id="phone" value="<?php echo $phone; ?>"/></td>
  </tr>
  <tr>
    <td><label for="email"><b>Email*</b></label></td>
    <td><input name="email" type"text" size"20" id="email" value="<?php echo $email; ?>"/></td>
  </tr>
  <tr>
    <td><label for="attending"><b>Attending*</b></label></td>
    <td><p>
      <label>
        <input type="radio" name="attending" id="attending_0" value="<?php echo $attending_0; ?>"  />
        Yes</label>
      <br />
      <label>
        <input type="radio" name="attending" id="attending_1" value="<?php echo $attending_1; ?>"  />
        No</label>
      <br />
    </p></td>
  </tr>
  <tr>
    <td><label for="attending"><b>How many guest?*</b></label></td>
    <td><p>
      <label>
        <input type="checkbox" name="guest" id="guest_0" value="<?php echo $guest_o; ?>"  />
        1</label>
      <br />
      <label>
        <input type="checkbox" name="guest" value="checkbox" id="guest_1" />
        2</label>
      <br />
    </p></td>
  </tr>
  <tr>
    <td><label for="attending"><b>Food Choice*</b></label></td
    ><td><select name="foodchoice" id="foodchoice">
      <option>Steak</option>
      <option>Chicken</option>
      <option>Fish</option>
    </select></td>

  </tr>
  <tr>
    <td><label for="comment"><b>Comment*</b></label></td>
    <td><textarea name="comment" cols="1" rows="2"></textarea></td>
  </tr>
  <tr>
    <td><b>Upload File*</b></td>
    <td><input type="file" name="file" id+"file" /></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><input type="hidden" name="submitted" value="1" />
<br />
<input type="submit" value="Submit" input id="send"/>
<input type="reset" name="reset" value="Reset" /></td>
</tr>
</table>
</form>

</div>
</body>
</html>

Hi edmanhickman. Welcome to SitePoint. :slight_smile:

Dreamweaver isn’t a browser, so don’t use it for testing websites. :slight_smile: (Yeah, I know it’s supposed to show you what a page looks like, but forget it. It’s junk.) Use a browser. So what happens when you view the page you created in a browser?

yeah it does same thing in browser

OK, there is a typo in your form line. Instead of

id=[COLOR="#FF0000"]'[/COLOR]customform"

you should have

id=[COLOR="#0000FF"]"[/COLOR]customform"

So this:

<form action="process_rsvp.php" method="post" enctype="multipart/form-data" id="customform">

it works now ty for your help:)

ok

Cool, glad it’s sorted. Good luck with your course. :slight_smile: