Forum Moderators: coopster & phranque

Message Too Old, No Replies

formmail.pl: "email" and "From" are blank?

registration form

         

Ceylan

12:55 am on Apr 15, 2007 (gmt 0)

10+ Year Member



I have a registration form all works great except when i receive the info..."submitted by is blank in email" and "From" is blank?

here is my form:
<form method="post" action="/cgi-bin/formmail.pl" onsubmit="return chkRegForm();" onreset="return confirm('Are you sure you want to clear this form?');">
<div align="left">
<input type=hidden name="recipient" value="EMAIL REMOVED - Send PM to This User Instead"> <input type=hidden name="subject" value="SHCC Class/Event Registration Form"> <input type=hidden name="redirect" value="http://www.example.com/pages/formthanks.html">
<table width="575" cellspacing=2 cellpadding=5 border=0 bgcolor="#e0e7f0">
<tr height="22">
<td colspan="4" bgcolor="#e0e7f0" height="22">
<h1 class="blue">Step 1</h1>
</td>
</tr>
<tr height="36">
<td colspan="4" height="36">
<h2>Contact Information: </h2>
<h2><span style="font-size:10px"><font color="#1c315c"> (You are required to include at least a phone number or address, so we are able to get in contact with you.)</font></span></h2>
</td>
</tr>
<tr>
<td>
<p class="tablebold">Name</p>
</td>
<td colspan=3><input type="text" name="name" size="40"></td>
</tr>
<tr>
<td>
<p class="tablebold">Phone Number</p>
</td>
<td><input type="text" name="phone" size="20" maxlength="20"></td>
<td>
<p class="tablebold">Email</p>
</td>
<td><input type="text" name="txtemail" size="30" onchange="return checkEmail(this.value);"></td>
</tr>
<tr>
<td>
<p class="tablebold">Address</p>
</td>
<td colspan=3><input type="text" name="address" size="40"></td>
</tr>
<tr>
<td>
<p class="tablebold">City</p>
</td>
<td><input type="text" name="city" size="20"></td>
<td>
<p class="tablebold">State</p>
</td>
<td><input type="text" name="state" size="2" maxlength="2"></td>
</tr>
<tr>
<td>
<p class="tablebold">Zip</p>
</td>
<td><input type="text" name="zip" size="5" maxlength="5" onchange="return checkForNumber(this.value);"></td>
<td colspan="2"><br>
</td>
</tr>
</table>
<br>
<hr align="left" size="1" width="576">
<br>
<table width="575" cellspacing=2 cellpadding=5 border=0 bgcolor="#dfe6ec">
<tr height="22">
<td colspan="2" valign="top" bgcolor="#e0e7f0" height="22">
<h1 class="blue">Step 2</h1>
</td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#dfe6ec">
<h2 class="highlight">Sign me up for the following class(es)/event(s):</h2>
<p class="color">Please list class/event title and date(s).</p>
<h5 class="color"><font color="#e0e7f0"><textarea rows="6" cols="65" name="signup"></textarea></font></h5>
</td>
</tr>
</table>
<br>
<hr align="left" size="1" width="576">
<br>
<table width="575" cellspacing=2 cellpadding=5 border=0 bgcolor="#e0e7f0">
<tr height="22">
<td colspan="2" bgcolor="#e0e7f0" height="22">
<h1 class="blue">Step 3</h1>
</td>
</tr>
<tr height="30">
<td colspan="2" height="30">
<h2 class="color">Please let us know a little bit more about yourself:</h2>
<p class="tablebold"><font size="2">Do you currently attend our Church? <input type="radio" name="Attend RCC" value="yes">Yes <input type="radio" name="Attend our Church" value="no">No</font></p>
</td>
</tr>
<tr height="131">
<td colspan="2" bgcolor="#e0e7f0" height="131">
<h2 class="tablebold">Use the following space to write any comments:<br>
<br>
<textarea rows="6" cols="65" name="Comments"></textarea></h2>
</td>
</tr>
</table>
<br>
<hr align="left" size="1" width="576">
<br>
<table width="575" border="0" cellspacing="2" cellpadding="0">
<tr>
<td>
<p><font size="2">Thank you for taking the time to fill out our form. Click on the submit button to send us the information. After you click on the submit button, you will see a confirmation page that your form has been submitted. Please contact removed if you have any trouble using this form or have any feedback for us.</font></p>
</td>
</tr>
</table>
<p></p>
<p><input type="submit" value="Submit Form"> <input type="reset" value="Clear Form"></p>
</div>
</form>

[edited by: encyclo at 1:21 am (utc) on April 15, 2007]
[edit reason] no specifics please, see terms of service [/edit]

encyclo

1:24 am on Apr 15, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The standard formmail script uses the names "email" and "realname" for the email address and From fields. In your example you are using different names ("txtemail"), which may explain why the script is not recognizing them.