Text Field In Formmail.cgi

liunx

Guest
Hi <br />I can't find the field to input the text in Formmail.<br />I've read the Matt's readme and faqs.<br />Found the subject, from, e-mail field, but not the main text area to write the message.<br /><br />Please someone help me <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" /><!--content-->
Hi Chevy-<br /><br />I think formmail takes any non-reserved variable and includes its values in the email it sends. So, if you define something like<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><input type=text name="occupation" length=30><!--c2--></div><!--ec2--><br /><br />Then formmail will take that variable ("occupation") and print it in the body of the message it generates. If I answer "impoverished grad student" to the form, you'll see something like<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->occupation: impoverished grad student<!--c2--></div><!--ec2--><br /><br />So, you're free to design your form with as many textareas or other variables that you want -- formmail is made to not require any modifications no matter what variables you want to pass on to it. So if you just want something like an email comment form, you might include something like <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><textarea name="usercomment" rows="8" cols="45"></textarea><!--c2--></div><!--ec2--><br /><br />The variable "usercomment" will automatically be passed on to formmail, and bingo -- you're done!<br /><br />-Alan<!--content-->
Chevy<br /><br />This will give you a small Comment Text Box for your form,<br /><textarea name=Comments rows="3" cols="30">Your Comments</textarea><br /><br />Richard<!--content-->
Thank you folks Thumbs Up <br /><br />Very much.<!--content-->
 
Back
Top