|
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 |
Brodephat Smarty n00b
Joined: 18 Apr 2018 Posts: 1
|
Posted: Wed Apr 18, 2018 1:26 pm Post subject: PHP to Smarty capturing POST variables |
|
|
I have a php file that is used to post to Twitter.
The post is generated by a URL like such:
http://www.example.com/post.php?artist=Michael Jackson&song=Beat It
When the php file is called, nothing is displayed (by design) because it's just updating the Twitter account with new information.
It works fine like it is, however I want to use the script in a Smarty template.
My question is, is it possible and when doing so will the variables from the source be captured and processed the same way they do with php?
Will the new URL be as such (since it's in a template - where below tweet.tpl is being used):
http://www.example.com/tweet/?artist=Michael Jackson&song=Beat It twitter page
The purpose for the change is to use it in a community based CMS website where each station owner has their own template. |
|
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
|