Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
how to do this ::action="<? print $_SERVER["PHP

 
Post new topic   Reply to topic    Smarty Forum Index -> Showcase
View previous topic :: View next topic  
Author Message
lean4huskytop
Smarty Regular


Joined: 19 Aug 2003
Posts: 41

PostPosted: Wed Jan 14, 2004 6:45 am    Post subject: how to do this ::action="<? print $_SERVER["PHP Reply with quote

I would lilke to have a form in a template and specity that the template's action is to the same file as here;

Code:

action="<? print $_SERVER["PHP_SELF"]; ?>"


How can I achieve that?
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3335
Location: Oldenburg, Germany

PostPosted: Wed Jan 14, 2004 8:17 am    Post subject: Reply with quote

action="{$smarty.server.PHP_SELF}"

see: http://smarty.php.net/manual/en/language.variables.smarty.php and http://smarty.php.net/manual/en/language.variables.smarty.request.php about what else can be found in $smarty
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Showcase 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