Carrying variables automatically?

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

PoorDoggie

Soon to be RICHdoggie!VIP Member
Impact
18
Hi. I am making a client's website, and I got a bit far and now they want me to be able to change something. (css style)

Basically: The whole website runs inside a php page with includes, but when you click a link, it refreshes the page (don't ask... :) ). What I need is a way to carry a variable ($css) automatically when a link is clicked, otherwise I will have to go back through all the links and update all of them.

I don't know how well I have explained my query, but I hope you can understand it!

Thanks in advance - Tom
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
If I understand correctly, you could use sessions or cookies. Do a search on google for "php cookies"
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back