Results 1 to 1 of 1

Thread: Need to send email from html site help !

  1. #1
    Join Date
    Jul 2005
    Posts
    93
    Rep Power
    0

    Lightbulb Need to send email from html site help !

    This is my source code i cant go any further i want to send on email from still form to an email address. please help.
    i dont know if the "form method "is setup right please help.

    YOU CAN COPY IT BELOW AND SAVE IT AS HTML AND RUN IT FIRST TO SE IF IT WORKS.

    HTML Code:
    <HTML>
    <HEAD>
    
    
    <TITLE>:: Feedback Form::</TITLE>
    
            <TR>
    		  <TD vAlign=top align=left colspan="2"><p class="clevset">Thanks for taking the time to give us your opinions, observations, complaints or questions.Please help us by completing the fields below and then by supplying your comments.</p><br>
    <table border="1" cellpadding="4" cellspacing="1">
    	<tr>
    		
    	</tr>
    </table>	
    	
     <table cellpadding="4" align="left" cellspacing="2" border="0">
    		  
    <!-- Begining of form -->
    <form method="POST" action="acept.html " name="contactform" autocomplete="on" style="background-color:#FFFFFF">
    <tr>
    	<td><b class="clevset">Name:</b></td>
    	
    	<td>
    		<input name="formname" type="text" size="30" maxlength="50" id="cjack">
    		<input type="hidden" value="contact" name="location">
    	</td>
    </tr>
    <tr>
    	<td><b class="clevset">Email:</b></td>
    	
    	<td>
    		<input name="formemail" type="text" size="30" maxlength="100" id="cjack">
    	</td>
    </tr>
    
    <tr>
    	<td><b class="clevset">Subject:</b></td>
    	
    	<td>
    		<input name="formsubject" type="text" size="30" maxlength="50" id="cjack">
    	</td>
    </tr>
    
    </tr>
    <tr>
    	<td valign="top"><b class="clevset">Comments:</b></td>
    	
    	<td>
    		<textarea name="formmessage" rows="7" cols="55" id="cjack"></textarea>
    	</td>
    </tr>
    <tr>
    	<td valign="left">&nbsp;
    	<td valign="left">&nbsp;
    
    	
    		<input type="submit" name="submit" value="Submit Feedback">&nbsp;
    		<input type="reset" name="formreset" value="Reset Form">
    </td>	
    </tr>
    </form>
    <!-- Form Validation Code -->
    <SCRIPT LANGUAGE="JavaScript">
    var contactformValidator = new Validator("contactform");
    contactformValidator.addValidation("formname","req","Please enter your full name.");
    contactformValidator.addValidation("formname","alpha_s","Aplhabetic input expected for name field.");
    contactformValidator.addValidation("formname","minlen=10","Please provide a value with more than 10 characters for  your name.");
    contactformValidator.addValidation("formemail","req","Please enter your email address.");
    contactformValidator.addValidation("formemail","email","Please provide a valid email address.");
    contactformValidator.addValidation("formemail","minlen=12","Please provide a value with more than 12 characters for your email address.");
    contactformValidator.addValidation("formage","selone","Please select your age group.");
    contactformValidator.addValidation("formsubject","req","Please provide a topic for your comments.");
    contactformValidator.addValidation("formsubject","alnum_s","Aplha-Numeric input expected for your subject.");
    contactformValidator.addValidation("formsubject","minlen=5","Please provide a value with more than 5 characters for your subject.");
    contactformValidator.addValidation("feedback","dontselect=0","Please select the type of feedback you wish to submit.");
    contactformValidator.addValidation("formmessage","minlen=50","Your message should have a minimum of 50 characters.");
    contactformValidator.addValidation("formmessage","req","Please enter your message.");
    
    </SCRIPT>
    <!-- End Form Validation -->
    
    </table></TD>
    	   </TR>
    	 		</TBODY></TABLE>
    	  </TD></TR></TBODY></TABLE></DIV></BODY></HTML>
    Last edited by Arch_Angel; Oct 2, 2006 at 06:46 AM. Reason: added HTML tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •