View Single Post
  #1 (permalink)  
Old 10-16-2006, 02:43 PM
xXHalfSliceXx's Avatar   
xXHalfSliceXx xXHalfSliceXx is offline
Co-Administrator
 
Join Date: Oct 2006
Location: Hendersonville, NC
Age: 24
Posts: 1,251
Credits: 0
Rep Power: 20
xXHalfSliceXx is on a distinguished road
Send a message via AIM to xXHalfSliceXx Send a message via MSN to xXHalfSliceXx Send a message via Yahoo to xXHalfSliceXx
Angry Problem with Contact Form

http://www.wncspacemakers.com/contac...ntactshane.php

1. I want to move the form to the middle of the CONTACT section.
2. After i click send. the code
Code:
<?php

  $printingVar = 'Thank you for sending this message. I\'ll get to you soon.';
  mail("shane@wncspacemakers.com",htmlentities($_POST['subject']), "Message from ". htmlentities($_POST['emailaddress']) ."\n". htmlentities($_POST['message']),'From: '. htmlentities($_POST['emailaddress']));
  $email = "";
  $subject = "";
  $message = "";
 }
?>
<p>
Does not work.

3. It wont send the e-mail

here is the code

Code:
<?php

  $printingVar = 'Thank you for sending this message. I\'ll get to you soon.';
  mail("shane@wncspacemakers.com",htmlentities($_POST['subject']), "Message from ". htmlentities($_POST['emailaddress']) ."\n". htmlentities($_POST['message']),'From: '. htmlentities($_POST['emailaddress']));
  $email = "";
  $subject = "";
  $message = "";
 }
?>
<p><br>
</p>
<form method="post" action="contact.php?page=contactshane.php">
<div align="center">
<table cellpadding="1" cellspacing="0" >
 <tr>
  <td style="height: 20px; width: 20%; color: #FF6600; font-size : 11px; font-family : Tahoma,Verdana,Arial; font-weight: bold;" >Your email: </td>
  <td style="width: 20%;" ><input type="text" name="emailaddress" style="width: 200px;" /></td>
 </tr>
 <tr>
  <td style="height: 20px; width: 20%; color: #FF6600; font-size : 11px; font-family : Tahoma,Verdana,Arial; font-weight: bold;" >Subject: </td>
  <td style="width: 20%;" ><input type="text" name="subject" style="width: 200px;" /></td>
 </tr>
 <tr>
  <td style="vertical-align: top; width: 20%; color: #FF6600; font-size : 11px; font-family : Tahoma,Verdana,Arial; font-weight: bold;" >Your message:</td>
  <td style="width: 20%;" >
   <textarea name="message" rows="10" cols="5" style="width: 200px;" >Type Your Message Here</textarea>
  </td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td><input type="submit" name="submitContact" value="Send Message" /></td>
  <td>&nbsp;</td>
 </tr>
</table>
</div>
</form>
<table border="0" cellpadding="5" cellspacing="0">

Last edited by Jordan; 10-16-2006 at 03:25 PM.
Reply With Quote

Sponsored Links