Email Form Problem

  • Thread starter Thread starter MarkPearson
  • Start date Start date
M

MarkPearson

I have a problem with the form located on this page:
http://www.ushopucare.co.uk/index.php?act=charity&sub=register

The problem is only the last field is shown (the URL) and all the other information messes up when it arrives in our email inbox...

Any idea whats wrong with the code?

Request for charity registration

Charity Name: International Survival Fund
Description: International Survival Fund
Contact Name: International Survival Fund
Email: International Survival Fund
Phone: International Survival Fund
Job Title: International Survival Fund
Charity Number: International Survival Fund
Charity url: www.URL_HERE.org



Code:
<!-- BEGIN charity_register -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="thTable">
  <tr>
    <th><div align="left">{$CONTENT_CAPTION_49}</div></th>
  </tr>
  <tr>
    <td><div align="left">{$CONTENT_49}</div></td>
  </tr>
</table>
<br />
<form id="cform" name="cform" method="post" action="">
  <input type="hidden" name="form_act" value="1" />
  <table border="0" align="left" cellpadding="3" cellspacing="0">
    <tr>
      <td colspan="2" valign="top" nowrap="nowrap"><div align="left"><span class="formstatus">{$form_status}</span></div></td>
      </tr> 
    <tr>
      <td nowrap="nowrap" valign="top"><div align="right">Name of Charity: *</div></td>
      <td><div align="left">
        <input name="charity_name" id="charity_name" value="{$charity_name}" type="text" size="30" />
      </div></td>
      </tr>
    <tr>
      <td nowrap="nowrap" valign="top"><div align="right">Description of Charity: * </div></td>
      <td><div align="left">
        <textarea name="descr" rows="7" cols="40">{$descr}</textarea>
      </div></td>
      </tr>
    <tr>
      <td><div align="right">Contact Name: * </div></td>
      <td><div align="left">
        <input name="contact_name" id="contact_name" value="{$contact_name}" type="text" size="30" />
      </div></td>
      </tr>
   <tr>
      <td><div align="right">E-mail: * </div></td>
      <td><div align="left">
        <input name="email" id="email" value="{$email}" type="text" size="30" />
      </div></td>
      </tr>
   <tr>
      <td><div align="right">Phone: * </div></td>
      <td><div align="left">
        <input name="phone" id="phone" value="{$phone}" type="text" size="30" />
      </div></td>
      </tr>
    <tr>
      <td><div align="right">Job Title: </div></td>
      <td><div align="left">
        <input name="job_title" id="job_title" value="{$job_title}" type="text" size="30" />
      </div></td>
      </tr>
    <tr>
      <td><div align="right">Charity Number: </div></td>
      <td><div align="left">
        <input name="charity_number" id="charity_number" value="{$charity_number}" type="text" size="30" />
      </div></td>
      </tr>
    <tr>
      <td><div align="right">Website Url: </div></td>
      <td><div align="left">
        <input name="charity_url" id="charity_url" value="{$charity_url}" type="text" size="30" />
      </div></td>
      </tr>
    <tr>
      <td><div align="left"></div></td>
      <td colspan="1" nowrap="nowrap">
        <div align="left">
          <input name="Signup" id="Signup" type="submit" value="Signup" onclick="return SendInvitations()" />
        </div></td>
   </tr>
  </table>
</form>
<!-- END charity_register -->
 
Assuming that the SendInvitations() function simply posts the form and doesn't modify the content, there is no obvious problem there (unless anyone can see something I've missed?). How does the PHP file it's being posted to deal with the $_POST contents (that's if it is being dealt with by a PHP script)?
 
Upvote 0

Latest Articles