954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Form To Mail using Php mailer

Hi
i am new to web developnment and fortuantely i was able to create a website for my friend

i have used dreamweaver to do the entire site in HTML
now i am using an enquiry form where a person types his info and submits the same which needs to go to my mail id in the script

i downloaded phpmailer-fe from sourceforge.net and included it into my code
but i am recieving an error which i understand head nor tail.

the site is www.iflchennai.in
in that please use the enquiry link to take u to the enquiry page
after typing data click on submit u will see the error page

i am including the coding below

* form.html ( this is my enquiry form)

<html>
<head>
<title>Enquiry Form</title>
<style>
body, p, table, th, td, div {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}
th {
  background-color:#0080C0;
  color:white;
  font-weight:bold;
  font-size:18px;
  border: 1px solid #0080C0;
}
input.text, textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  width: 99%;
}
.text:focus, textarea:focus {
  background-color: #FFFACC;
  border: 1px solid #000000;
}
#mydiv {
  position: absolute;
  left: 50%;
  margin-left: -250px;
  width: 500px;
  text-align: left;
}
td.colone {
  text-align: right;
  vertical-align: top;
  padding-top:4px;
#  border-top: 1px solid #0080C0;
#  border-bottom: 1px solid #0080C0;
#  border-left: 1px solid #0080C0;
}
td.coltwo {
  color:red;
  text-align: center;
  vertical-align: top;
  padding-top:6px;
#  border-top: 1px solid #0080C0;
#  border-bottom: 1px solid #0080C0;
}
td.colthree {
#  border-top: 1px solid #0080C0;
#  border-bottom: 1px solid #0080C0;
#  border-right: 1px solid #0080C0;
}
table.border {
  border: 1px solid #0080C0;
  border-collapse: collapse;
}
</style>
</head>
<body>
<div id="mydiv">
<form method="POST" action="_lib/phpmailer-fe.php" enctype="multipart/form-data">
<input type="hidden" value="form.html" name="referer">
<table class="border" width="500" cellpadding="3" cellspacing="0">
  <tr>
    <th colspan="3">Enquiry Form</th>
  </tr>
  <tr>
    <td colspan="3"><div style="height:5px;"></div></td>
  </tr>
  <tr>
    <td class="colone">First Name</td>
    <td class="coltwo">*</td>
    <td class="colthree"><input class="text" type="text" name="frmFirstname" size="20"></td>
  </tr>
  <tr>
    <td class="colone">Contact No </td>
    <td class="coltwo">*</td>
    <td class="colthree"><input class="text" type="text" name="frmLastname" size="20"></td>
  </tr>
  
  
    
  
  <tr>
    <td class="colone">Email</td>
    <td class="coltwo">*</td>
    <td class="colthree"><input class="text" type="text" name="email" size="20"></td>
  </tr>
  <tr>
    <td class="colone">Enquiry</td>
    <td class="coltwo">&nbsp;</td>
    <td class="colthree"><textarea rows="2" name="comment" cols="20"></textarea></td>
  </tr>
  
  
  <tr>
    <td class="colone" colspan="2">&nbsp;</td>
    <td class="colthree"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></td>
  </tr>
  <tr>
    <td colspan="3"><div style="height:5px;"></div></td>
  </tr>
</table>
</form>
<span style="color:red;">*</span> = required
</div>
</body>
</html>


*End of form.html-------------*

i am using phpmailer-fe.php to senthe mail the code pof phpmailer-fe.php is below

please see what is wrong in this coding
and help me at the earliest

thank a million in advance

Chris

Attachments code.txt (57.36KB)
christophertheo
Newbie Poster
8 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

First check that the site is php enabled and that .php files work on it, maybe it only has ASP?

kaleshwar
Newbie Poster
8 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 
First check that the site is php enabled and that .php files work on it, maybe it only has ASP?


hey thanks for the reply

i have checked with my service providers
i have php enabled and the .php files will work that is what they say
i presume u can help me please dot the needful if there is any thing else u need please let me know i can provide all the information u need for u to help me \\
thanks in advance

christophertheo
Newbie Poster
8 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You