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

Handle forms

 
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 -> General
View previous topic :: View next topic  
Author Message
jemp
Smarty n00b


Joined: 19 Apr 2003
Posts: 1

PostPosted: Sat Apr 19, 2003 10:33 pm    Post subject: Handle forms Reply with quote

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
View user's profile Send private message
David
Smarty Rookie


Joined: 18 Apr 2003
Posts: 17
Location: New York, NY, USA

PostPosted: Mon Apr 21, 2003 8:39 pm    Post subject: Reply with quote

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
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 -> General 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