Jump to content

[SOLVED] Need help, "if then" with getting a URL param


jeffphp

Recommended Posts

for a ppc campaign I'm running, to improve my quality score I'm pulling my adwords keyword from the URL.

 

site.com/index.php?kw=my keyword

 

in the page I pull the kw using

 

<?echo $_GET['kw'] ?>

 

Now the page will look bad if someone clicks around, comes back via a normal link and sees an empty space

 

How can I make this so

 

<?echo $_GET['kw'] ?>  IF  kw exists, or if kw doesn't exist, default to "something I choose"

 

Thanks!

 

Jeff

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.