Connecting Tech Pros Worldwide Forums | Help | Site Map

Html Contact Form Trouble

Newbie
 
Join Date: Jul 2007
Posts: 18
#1: Nov 5 '07
Here is my Html Code and my Contact.php

This is My code in my html
[html]
<td height="345" valign="top">
<form style="margin:0; padding:0; " action="contact.php" method="get" id="form">
<table width="476" style="height:100% " border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="238" valign="top">
<div style="margin:29px 0px 0px 23px; ">
<img src="images/6tx2.gif" alt=""><br>
<img src="images/spacer.gif" alt="" width="1" height="21"><br>
Your Namebr>
<input type="text" class="form"><br>
<img src="images/spacer.gif" alt="" width="1" height="15"><br>
Your Emailbr>
<input type="text" class="form"><br>
<img src="images/spacer.gif" alt="" width="1" height="16"><br>
Your Subject Linebr>
<input type="text" class="form"><br>
</div>

</td>
<td width="238" valign="top">
<div style="margin-top:63px; ">
Your Messagebr>
<textarea rows="5" cols="5" class="textarea" style="overflow:hidden "></textarea><br>
<div style="margin:5px 35px 0px 0px; " align="right">
<a href="" onclick="document.getElementById('form').reset()"> reset</a><img src="images/spacer.gif" alt="" width="16" height="1"><a href="" onclick="document.getElementById('form').submit()" >submit</a>
</div>
</div>
[/html]
Theirs is not Image Link you mentioned above that causes my page to be off in alignment.

My Contact.PHp looks like this
Expand|Select|Wrap|Line Numbers
  1. <?
  2. $subject="from ".$_GET['Your_Name'];
  3. $headers= "From: ".$_GET['Your_Email']."\n";
  4. $headers.='Content-type: text/html; charset=iso-8859-1';
  5. mail("defina8953@rogers.com", $subject, "
  6. <html>
  7. <head>
  8. <title>Septagon Studios: Contact Form</title>
  9. </head>
  10. <body>
  11.  
  12. <br>
  13. ".$_GET['Your_Message']."
  14. </body>
  15. </html>" , $headers);
  16. echo ("Your message was successfully sent!");
  17. ?>
  18.  
This is how my page looks

http://www.nyxxunderground.com/SEPTA...l/index-6.html

Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,949
#2: Nov 5 '07

re: Html Contact Form Trouble


...

So what's the 'trouble' you speak of?
Newbie
 
Join Date: Jul 2007
Posts: 18
#3: Nov 6 '07

re: Html Contact Form Trouble


I'm not able to get those email messages sent from the contact form.

Is there anything wrong in the code that should be implemented
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,579
#4: Nov 6 '07

re: Html Contact Form Trouble


I believe this is a PHP problem so I'll send it there.
Newbie
 
Join Date: Jul 2007
Posts: 18
#5: Nov 6 '07

re: Html Contact Form Trouble


So the HTml portion is fine?
Newbie
 
Join Date: Jul 2007
Posts: 18
#6: Nov 6 '07

re: Html Contact Form Trouble


Has anyone looked at the problem yet
Reply