need some help with this form

Discussion in 'PHP' started by dougvcd, Mar 11, 2008.

  1. #1
    ok have this form which emails the details which have been filled in
    what i am trying to do is inclued a line some like
    this enquiry came through www.uk-caravan-hire.com
    i presume you do it with a hidden input not sure
    cheers
    Doug

    <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=hidden name=id value=<?echo $id ?>>
    <input type=hidden name=count value=<?echo $count ?>>
    <input type="submit" name="Submit" value="Send"></td>                               
              </tr>                          
             </table>                       
           </form>                   
    PHP:
     
    dougvcd, Mar 11, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    That's the HTML, and not the code that actually sends the email.
     
    nico_swd, Mar 11, 2008 IP
  3. dougvcd

    dougvcd Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cheers buddy
    have sorted it now
    thanks
    Doug
     
    dougvcd, Mar 11, 2008 IP