(1) form will go to email address, but it won't inside the email. the form will not show.

what am I doing wrong?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000">

 <form method="post" action="mailto:my_email@somewhere.com">
	
	<div align="center">
  <p>&nbsp;</p><table width="45%" border="0" bordercolor="#FFFFFF">
   <tr bgcolor="#FFFFFF"> 
    <th colspan="2"> 
     <p><font color="#3333FF">SOUNDS UNIQUE ENTERTAINMENT</font></p>
     <p>Join the list and be a VIP to one of the hottest clubs in the area<br>
     </p></th>
   </tr>
   <tr bgcolor="#FFFFFF"> 
    <th colspan="2"><font color="#3333FF">GUEST LIST<font size="-1"><br>
     <font color="#000000">opens at 3pm and closes at 9p.m or first 50 guest</font></font><font color="#000000" size="-1"> 
     Friday and Saturday but it excludes all special events. Guests must be at 
     the door before 9p.m</font></font></th>
   </tr>
   <tr bgcolor="#FFFFFF"> 
    <td width="31%">Name:</td>
    <td width="69%"> 
     <input name="name" type="text" id="name" size="35"></td>
   </tr>
   <tr bgcolor="#FFFFFF"> 
    <td>Email Address:</td>
    <td> 
     <input name="Email" type="text" id="Email" size="35"></td>
   </tr>
   <tr bgcolor="#FFFFFF"> 
    <td> Number of Guests:</td>
    <td> 
     <select name="# of Guest" id="# of Guest">
      <option value="0" selected>1</option>
      <option value="1">2</option>
      <option value="2">3</option>
      <option value="3">4</option>
     </select></td>
   </tr>
   <tr bgcolor="#FFFFFF"> 
    <td>Day:</td>
    <td> 
     <input name="Friday" type="checkbox" id="Friday" value="Friday">
     Friday 
     <input name="Saturday" type="checkbox" id="Saturday" value="Saturday">
     Saturday</td>
   </tr>
   <tr bgcolor="#FFFFFF"> 
    <td>(MM/DD/YYYY)</td>
    <td> 
     <input type="text" name="textfield"></td>
   </tr>
   <tr bgcolor="#FFFFFF"> 
    <td>Message:</td>
    <td> 
     <textarea name="Message" id="Message"></textarea> </td>
   </tr>
   <tr bgcolor="#FFFFFF"> 
    <td> 
     <input name="Reset" type="reset" id="Reset2" value="Reset"></td>
    <td> 
     <input type="submit" name="Submit" value="Submit Form"></td>
   </tr>
  </table>
 </div>
 <div align="center"></div>
 <div align="center"></div>
</form>
</body>
</html>

Dani AI

Generated

Quick diagnosis and what changed since older tutorials: the form's behavior is coming from using action="mailto:...". That hands the submission off to whatever mail client or mail handler the visitor has configured, and the way browsers and MUAs handle that is inconsistent — sometimes a draft is created with readable fields, sometimes the data is attached as an opaque file, and sometimes nothing useful is delivered. Relying on mailto: is therefore unreliable for collecting form entries. (w3.org)

Concrete problems in 's markup (easy fixes)

  • Attribute names must not contain spaces or certain punctuation; name="# of Guest" is invalid for a control name — change it to something like name="guests". (html.spec.whatwg.org)
  • Checkboxes named separately (name="Friday", name="Saturday") submit only when checked; to receive multiple selections as one data set use the same name (for PHP: name="days[]"). The same-name/array convention (and how select/multiple values are submitted) is explained in the form controls docs. (developer.mozilla.org)

A practical, modern fix (example)

  • Send form data to a server-side endpoint instead of mailto:. Example HTML (replace /form-handler.php with an actual handler):
    <form method="post" action="/form-handler.php">
    <input type="text" name="name" id="name">
    <input type="email" name="email" id="email">
    <select name="guests" id="guests">...</select>
    <input type="checkbox" name="days[]" value="Friday"> Friday
    <input type="date" name="date" id="date">
    <button type="submit">Submit</button>
    </form>

    Server-side can use a mail API or a simple mail call; if using PHP the mail() function is available but requires proper headers, validation and sanitization (to avoid header injection and other risks). See the PHP manual for safe usage and examples. (php.net)

Notes and quick testing tips

  • 's Dreamweaver tutorial is useful for layout and wiring up a form, but it doesn't remove mailto:'s fundamental limitations. For quick local testing a mailto: form with enctype="text/plain" may sometimes produce readable drafts, but it should never be treated as a production solution. Server-handled forms or reputable form services are the reliable option. (w3.org)

Try looking at the tutorial

See if that helps you at all

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.