|
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 |
jemp Smarty n00b
Joined: 19 Apr 2003 Posts: 1
|
Posted: Sat Apr 19, 2003 10:33 pm Post subject: Handle forms |
|
|
Hi,
I would like to use smarty with forms ...
Is there someone that have a small example with a text field variable passing to another page ?
Thanks a lot
GPo |
|
Back to top |
|
David Smarty Rookie
Joined: 18 Apr 2003 Posts: 17 Location: New York, NY, USA
|
Posted: Mon Apr 21, 2003 8:39 pm Post subject: |
|
|
Not quite sure what you mean by "pass it to another page"
The request variables are available to your PHP script just as they always are. Say you were POSTed some form data, and you want to display it in a template: use assign("foo",$_POST['yourTextfield']) and display("yourTemplate.html"), where yourTemplate.html contains a placeholder à la {$foo}
HTH. If not, feel free to try again _________________ David Mintz
http://davidmintz.org/
"Anybody else got a problem with Webistics?" -- Sopranos 24:17 |
|
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
|