faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 22 people (64%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

how do i make a link open a template and insert content into it from the peramaters set by the link?

Feb 21st, 2007 04:35
Articles Hosting, Matthew Wilkinson, Graham Shaw,


To get variables from the link, just use the variable name. For 
instance:
http://somewhere.com/fetch_template.php?template=default2&header=HELLO!
&body=BODY&footer=FOOTER!
Each of these can be accessed using the name of the varialbe, for 
instance:
$template
$header
$body
$footer
==
use fetch()
http://americanahost.com
http://www.qwesz.com