[TYPO3-dev] Form is only submitted when logged into BE

Brian Bendtsen nightowl at galnet.dk
Wed Apr 25 08:56:52 CEST 2007


Hi

I have created an extension with a search form. Problem is, the form 
only sends data when im logged into the BE.

My form:

<form action="index.php?id=12" method="post">
	<td>Område</td><td><input type="TEXT" name="tx_ebbolig_pi1[area]" /></td>
	</tr><tr>
	<td>Max. husleje</td><td><input type="TEXT" name="tx_ebbolig_pi1[rent]" 
/></td>
	</tr><tr>
	<td>Antal rum</td><td><input type="CHECKBOX" 
name="tx_ebbolig_pi1[rooms][]" VALUE="1"/> 1 <input type="CHECKBOX" 
name="tx_ebbolig_pi1[rooms][]" VALUE="2"/> 2 <input type="CHECKBOX" 
name="tx_ebbolig_pi1[rooms][]" VALUE="3"/> 3</td>
	</tr><tr>
	<td></td><td><input type="CHECKBOX" name="tx_ebbolig_pi1[rooms][]" 
VALUE="4"/> 4 <input type="CHECKBOX" name="tx_ebbolig_pi1[rooms][]" 
VALUE="5"/> 5 <input type="CHECKBOX" name="tx_ebbolig_pi1[rooms][]" 
VALUE="6"/> 6</td>
	</tr><tr>
	<td colspan="2" align="right"><input type="SUBMIT" 
name="tx_ebbolig_pi1[submit]" value="Søg" /></td>
	</tr>
  </form>

Im checking if the form is submitted like this:

if(!$this->piVars['submit'] == '') {
//do something
}

Am I forgetting something?

/Brian Bendtsen




More information about the TYPO3-dev mailing list