...

View Full Version : Formmail - Required fields problems



CyberDave
01-21-2010, 12:16 PM
<form class="feedback" name="mailing-list" method="post" action="cgi-bin/feedback.pl">
<img src="images/form-header.png" />
<textarea cols="" class="doing">Tell us about your experience...</textarea>
<textarea name="" cols="" rows="" class="email">Your email...</textarea>
<img src="images/form-bottom.png" />
<input name="submit" type="submit" class="submit" value="SUBMIT"/>
<input type="hidden" name="required" value="doing,email">
<input type="hidden" name="recipient" value="info@company.ie">
<input type="hidden" name="subject" value="Feedback" />
<input type="hidden" name="redirect" value="/thanks.html" />
</form>


I am using Formmail to send the above form, but even when both fields are filled out, I still get an error message to say they haven't been. This is the second formmail in the CGI bin if that makes any difference.

Any ideas how to solve this? Thanks

Puffin the Erb
01-22-2010, 01:20 PM
You have left out the name attributes of your form elements.

Instead of :



<textarea cols="" class="doing">Tell us about your experience...</textarea>
<textarea name="" cols="" rows="" class="email">Your email...</textarea>


try this :



<label for="doing">Experience</label>
<textarea cols="30" rows="5" name="doing">Tell us about your experience...</textarea>
<label for="email">Email address</label>
<input type="text" name="email" value="Your email..." />


The 'class' attribute you were using is for applying StyleSheets, putting them back in will not affect the processing, but not having the 'name' attribute will.
The email address would be better as a text box rather than a textarea.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum