[TYPO3-UG Italy] t3lib_div::_POST($this->prefixId)

jh jh at venetowebdesign.it
Wed Jul 5 14:03:22 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Ciao Andrea,


> grazie mille per la risposta. Pero' qualcuno mi aveva detto che piVars
> funziona SOLO per valori in GET... Sbagliato?
> Io ho una form in POST esattamente come tu hai scritto nel primo  
> esempio...


Funzione per tutti due. è solo che ci sia solo l'uno o l'altro. Prova:

	function main($content,$conf)	{
		$this->conf=$conf;
		$this->pi_setPiVarDefaults();
		$this->pi_loadLL();
		$this->pi_USER_INT_obj=1;	// Configuring so caching is not  
expected. This value means that no cHash params are ever set. We do  
this, because it's a USER_INT object!
		t3lib_div::debug($this->piVars,'pivars');

		$content='
			<strong>This is a few paragraphs:</strong><br />
			<p>This is line 1</p>
			<p>This is line 2</p>
	
			<h3>This is a form:</h3>
			<form action="'.$this->pi_getPageLink($GLOBALS['TSFE']->id).'"  
method="POST">
				<input type="hidden" name="no_cache" value="1">
				<input type="text" name="'.$this->prefixId.'[input_field]"  
value="'.htmlspecialchars($this->piVars['input_field']).'">
				<input type="submit" name="'.$this->prefixId.'[submit_button]"  
value="'.htmlspecialchars($this->pi_getLL('submit_button_label')).'">
			</form>
			<br />
			<p>You can click here to <a href="index.php?id='.$GLOBALS['TSFE']- 
 >id.'&'.$this->prefixId.'[test]=1">test</a></p>
		';
	
		return $this->pi_wrapInBaseClass($content);
	}



Ciao
Jan











>
> Grazie
>
> Andrea
> _______________________________________________
> TYPO3-UG-italy mailing list
> TYPO3-UG-italy at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-italy

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEq6qK4EmUIiX5qTARAp8xAJ4zzc8Bufhfr/j9SXClT9NpHnTVcwCgyYl3
SeojyOPIU7erYxPMc9tLXEA=
=Xae/
-----END PGP SIGNATURE-----



More information about the TYPO3-UG-italy mailing list