[TYPO3] mailformplus template

Floyd Arguello floyd at icommnetwork.com
Mon Apr 10 21:32:32 CEST 2006


Hi all,

The mailformplus template makes perfect sense to me now, but I was more 
than a little confused at first. So, I'm going to post a template with 
the hope that it helps future (and current) users.

I used CSS and floated stuff to the left. This way, my error message 
shows up to the right of the label and pushes the form fields to the 
right. Can't miss it. See it in action here, but be forewarned: the site 
is full of scantily clad people (not nude, however). Seriously. And it's 
not a plug... I doubt that many of you live in the Phoenix-metro area... 
  http://www.phoenixpartystrippers.com/reservations.html

And please don't submit a completed form unless you're serious... my 
partner has in the past put her 9 inch stripper heal through 1 guy's 
head and another guy's lip... they avoided serious damage only because 
their skulls were thicker than her shoe. Distance keeps you safe, but I 
don't need anymore scars. The whole thing about chicks digging scars is 
a myth, they like the story behind the scar, and no girl wants to hear 
that you're "cool" scar came from an angry stripper... you just became a 
sleaze AND a dumba$$.

Here's the template:

<!-- ###TEMPLATE_FORM### begin
   Put the form after this comment -->
<form name="Formular" onSubmit="return v.exec()" method="post" 
action="index.php" enctype="multipart/form-data">
<input type="hidden" name="id" value="###PID###" />
<input type="hidden" name="submitted" value="1" />
<input type="hidden" name="L" value="0" />
<label for="name">*First Name</label>
###error_name###
<input id="name" type="text" name="name" value="###value_name###" /><br 
/><br />
<label for="lastname">*Last Name</label>
###error_lastname###
<input type="text" name="lastname" value="###value_lastname###" /><br 
/><br />
<label for="type">*Do you like me?</label>
###error_like###
<select name="type">
	<option value="" ###selected_like_empty###></option>
	<option value="yes" ###selected_like_yes###>Yes!</option>
	<option value="of_course" ###selected_like_of_course###>Of 
Course!</option>			
	<option value="definitely" 
###selected_like_definitely###>Definitely!</option>			
</select>
<br /><br />
<label for "special">Tell me why</label>
<textarea name="special" class="texta"> </textarea>
<br class="clearboth"><br />
<input type="submit" name="Submit" value="Submit" 
class="altButtonFormat" /><br class="clearboth"><br />
</form>
<!-- ###TEMPLATE_FORM### end -->

<!-- ###TEMPLATE_SUBMITTED_OK### begin
   OPTIONAL - will be shown if form was submitted and all required 
fields were filled out
	<!-- ###TEMPLATE_EMAIL_USER### begin
     	OPTIONAL - this will be the email text that is sent to the user 
(plaintext!)
	-->
	**This message contains IMPORTANT INFORMATION concerning your response 
to me**

	Hi ###name###, thank you for liking me! Here's what you said:

	Your Name: ###name### ###lastname###
	Do you like me? ###like###
	Tell me why: ###special###

	Warmest regards,
	me
	<!-- ###TEMPLATE_EMAIL_USER### end -->

	<!-- ###TEMPLATE_EMAIL_RECEIVER### begin
	This is the message that is sent to you (or me) when the form has been 
submitted.
	-->
	This person likes me!
	Name: ###name### ###lastname###
	Do they like me? ###like###
	Why? ###special###
	<!-- ###TEMPLATE_EMAIL_RECEIVER### end -->
	
	<!-- ###TEMPLATE_ERROR### begin -->
	
	<!-- ###ERROR_START### begin
	   **I didn't use this or the next one.
            It wraps the whole error message.
	-->
		<div id="whatever">
	<!-- ###ERROR_START### end -->
		
	<!-- ###ERROR_END### begin -->
		</div>
	<!-- ###ERROR_END### end -->

	<!-- ###ERROR_name### begin -->
		<span class="formError">*required</span>
	<!-- ###ERROR_name### end -->
	<!-- ###ERROR_lastname### begin -->
		<span class="formError">*required</span>
	<!-- ###ERROR_lastname### end -->
	<!-- ###ERROR_special### begin -->
		<span class="formError">*required</span>
	<!-- ###ERROR_special### end -->
<!-- ###TEMPLATE_ERROR### end -->

That's it! Hope that helps! If it doesn't, do your due diligence and 
research prior to posting on the NG.

Floyd



More information about the TYPO3-english mailing list