hello all
i have this email form which i downloaded from the net but getting blank emails
so presume peeps messing about
is there a way to have name and email addy as a required field before submission
cheers
Doug

this is the code i have

PHP Code:
<?php
     
if ($_SERVER['REQUEST_METHOD'] != 'POST'){                          
     
$me $_SERVER['PHP_SELF'];                    
?>                       
 </div>
 
<form name="form1" method="post"                             
     action="<?php echo $me;?>">
                              
            <table width="600" border="0" cellspacing="0" cellpadding="2" align="center">                             
            <tr>                                
            <td align="left"><span>Name:</span></td>                                
            <td align="left"><input type="text" name="Name"></td>                             
            </tr>                             
            <tr>                                
           <td align="left"><span>Telephone Number:</span></td>                                
           <td align="left"><input type="text" name="TelNo"></td>                             
           </tr>                            
           <tr>                                
           <td align="left"><span>Email:</span></td>                                
            <td align="left"><input type="text" name="Email"></td>                            
            </tr>                             
           <tr>                                
           <td align="left" valign="top"><span>Enquiry:</span></td>                                
           <td align="left"><textarea name="MsgBody" cols="30" rows="5"></textarea></td>                             
           </tr>                             
          <tr>                                
          <td align="left"><input type="submit" name="Submit" value="Send"></td>                               
          </tr>                          
         </table>                       
       </form>                   
<?php                             
} else {                                  
                
error_reporting(0);                                  
                
$recipient 'joeblogs@hotmail.co.uk';                                  
                
$subject 'Caravan Hire';                                  
                
$from stripslashes($_POST['Name']);                                  
                
$telno stripslashes($_POST['TelNo']);                                  
                
$email stripslashes($_POST['Email']);                                  
                
$company stripslashes($_POST['Company']);                                  
                
$message stripslashes($_POST['MsgBody']);                                  
                
$msg "Message from: $from\n\nTelephone Number: $telno\n\nEmail: $email\n\nUsers Message:\n\n $message\n\n";                                  
                if (
mail($recipient$subject$msg))                                     
                echo 
nl2br("<b>Message Sent</b>");                                  
                else                                     
                echo 
"An unknown error occurred.";
                                      
 }        
?>
          </tr>
          </table>
          </form>