|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
waldi007 Smarty n00b
Joined: 26 Dec 2014 Posts: 1
|
Posted: Fri Dec 26, 2014 9:35 am Post subject: Übergabe einer Variablen aus Form |
|
|
Ich komme vormals aus der PHP-Ecke und bin nun an Smarty wegen Shopsystems gebunden, habe aber ein Riesenproblem mit einer Variablenübergabe.
formular.tpl
Code: | <form method="POST" action="{aaURLEncode bUrlOnly=true}">
<input name="aaParams" type="hidden" value="1" />
<input name="kAuswahlAssistentFrage" type="hidden" value="{$oAuswahlAssistentFrage->kAuswahlAssistentFrage}" />
<input name="nFrage" type="hidden" value="{$nFrage}" />
<input name="kKategorie" type="hidden" value="{$kKategorie}" />
|
Hier möchte ich noch eine weitere Variable einfügen z.B.
Code: | <input name="abgeschickt" type="hidden" value="1" /> |
und diese Variable auf der Folgeseite abfangen. $smarty.get.page bringt mich nicht weiter. Hat jemand eine Idee? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Dec 26, 2014 2:36 pm Post subject: |
|
|
You're making POST request and looking in $_GET superglobal.
No wonder you didn't find much.
As an immediate solution, you can try {$smarty.post.abgeschickt}, or {$smarty.request.abgeschickt}.
However, I wonder, what you are really trying to achieve with this change? Indicate, that the form has been submitted? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|