Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Übergabe einer Variablen aus Form

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
waldi007
Smarty n00b


Joined: 26 Dec 2014
Posts: 1

PostPosted: Fri Dec 26, 2014 9:35 am    Post subject: Übergabe einer Variablen aus Form Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Dec 26, 2014 2:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP