Webmastersite.net
Register Log In

formemail.phpnot working

Title formemail.phpnot working
Message Text I'm trying to set up a contact page using formemail.php. When testing, everything works except that it doesn't email the message itself. It sends an email with FROM, SUBJECT, but no MESSAGE. Looking at formemail.php (I only have limited php knowledge, so if I am wrong, don't fault me), I didn't see anywhere that the message value is getting passed and posted. My contact.php file:
<?php 
$custom = 'yes'; 
$TID = 'contact'; 
require 'index.php'; 
?>
My contact.tpl file:
                <table width="95%" border="0" cellpadding="1" cellspacing="1" bgcolor="#0099FF" class="maintext">
                   <tr bgcolor="#FFFFFF">
                   <form action="formemail.php" method="post">
                   <input type="hidden" name="thankspage" value="http://www.gamelinks.com">
                      <td valign="top">
                      <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#2498C1" class="maintext">
                          <tr> 
                            <td bgcolor="#2498C1" class="footertext"><strong><a href="https://www.webmastersite.net/forums/">{LANG_NAVORIGIN}</a> > <font color="#E1E6E6">Contact Webmaster</font></strong></td>
                          </tr>
                          <tr bgcolor="#FFFFFF"> 
                            <td class="boxcolor"><table width="100%" border="0" cellpadding="3" cellspacing="0" class="maintext">
                                 <tr>
                                  <td><strong>Your E-mail:</strong></td>
                                  <td><input type="text" name="submitteremail" size="{STANDARDSIZE}"></td> 
                                 </tr>
                                 <tr>
                                  <td><strong>Subject:</strong></td>
                                  <td><input type="text" name="subject" size="{STANDARDSIZE}"></td> 
                                 </tr>
                                 <tr>
                                  <td valign="top"><strong>Message:</strong></td> 
                                  <td><textarea name="message" cols="30" rows="10"></textarea></td> 
                                 </tr>
                                <tr>
                                  <td> </td> 
                                  <td><input type="submit" value="Send E-Mail" class="button"></td> 
                                </tr>
                              </table></td>
                          </form>
                          </tr>
                        </table>
                     </td></tr></table>
BTW, notice how it fills in the variables in the above code with your forum URL - could there be a potential security risk in allowing that to occur with your forum? Thanks, Adam
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership Synozeer
Views 785 views. Averaging 0 views per day.
Similar Topics
Submission Date May 02, 2005 - 9:40 AM