Thread: PHP issue
View Single Post
Old 05-04-2011, 05:06 PM  
barcodes
Confirmed User
 
barcodes's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: Florida
Posts: 2,040
PHP issue

Hey again everyone.

I am hoping someone can help me figure this out.
I want to make a variable that i can rename manually per page.
I then want to change the url to go here i need it to go based on that variable.
Im more of a coldfusion guy and could do this easily, but I am restricted to doing this with php.

Here is an example of what I would do in CF incase I am unclear above:

Code:
Set the Var in the header file
<cfparam name="location" default="home">

Create the link (going to do this with url feeds, but for simplicity ill use an image)
<cfoutput><img src="#location#.jpg"></cfoutput>

Change the tag in, lets say, contact page:
<cfset location="contact" />
Right now in my ghetto way of thinking, I am making an if else with rss urls in php and trying to find a way to call them from each page.

Thanks in advance for any help =D
barcodes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook