[TYPO3] EXT Develop form help

rocky Ou rockysynergy at max-source.com
Mon Feb 12 16:39:53 CET 2007


Hey All,

At the FE of my plugin there's a dropdown selection input and a submit
button. If I put all the content in myext/pi1/class.myext.php I can put
the form in the following format to get
$this->pi_Var['submit_buttonaddtip'].

/*************SNIP BEGIN**************************/
  <h5>Add coaching notes for '.$name.':</h5>
			<form
action="'.$this->pi_linkTP_keepPIvars_url($overrulePIvars=array('name'=>''.$name.''),$cache=0,$clearAnyway=0,$altPageId=0).'" 

method="POST">
				<input type="hidden" name="no_cache" value="1">
				<input type="hidden" name="'.$this->prefixId.'[DATA][coach]"
value="'.$coach.'">
                                 <lable
for="'.$this->prefixId.'[DATA][tip]">Session Date and Notes:</lable>
				<textarea name="'.$this->prefixId.'[DATA][tip]"></textarea>
                                 <lable
for="'.$this->prefixId.'[DATA][message]">Remember to Ask the Client:</lable>
				<textarea name="'.$this->prefixId.'[DATA][message]"></textarea>
				<input type="submit" name="'.$this->prefixId.'[submit_buttonaddtip]"
value="Submit" class="submit">
/***************SNIP END *******************/

Now I want put the form template into myext.tmpl. Can you tell me how
can I re-write the template file to accomplish the same thing please?

Thanks in advance!
Rocky


More information about the TYPO3-english mailing list