Blogroll

photoshop cs6 html 5 css php seo backlinks

adsense

Monday, 24 February 2014

How to access value from http parameter and others? Reversed Variable

Smarty Variable Step by Step Tutorial - Part 5: Following how to access value from http parameter and others:
GET
From this url: http://localhost/test/smarty/test.php?page=about
1<html>
2  <head>
3    <title>Page {$smart.get.page}</title>
4  </head>
5  <body bgcolor="{#bodyColor#}">
6    page: {$smarty.get.page} <br>
7  </body>
8</html>
POST
Example from http Post:
1{$smarty.post.page}
Cookie
Example from cookie "page":
1{$smarty.cookie.page}
SERVER
1{$smarty.server.SERVER_NAME}
session
Example from session "page":

1{$smarty.session.page}

0 comments:

Post a Comment