Jump to content

Passing to title tag


kurt.santo
 Share

Recommended Posts

Exactly what do you mean? Could you give some real (full code) example of what should automatically do what with what?
Sorry, I was not clear enough. I use the following HTML code for my sidebar:
<ul>    <li class="select"><a href="ranges.htm">Furniture By Range</a></li>    <li><a href="item.php?id=36">Shanghai</a></li>    <li><a href="item.php?id=37">Boston</a></li>    <li><a href="item.php?id=38">Brighton</a></li>    <li><a href="item.php?id=39">Toulouse</a></li>    <li><a href="item.php?id=40">Beijing</a></li>  </ul>

I use the ids to pass parameters to scripts I have in item.php. Is it possible also to use the ids to pass "Shanghai" for example to the title tag?Kurt

Link to comment
Share on other sites

Sure. Just pass in another parameter, separating each with "&". The links' href would then look like

item.php?id=40&title=Shanghai

Note that in this case,you'll need a special handler in PHP to react on the supplied title of course with

$_GET['title']

if you use the above suggested URL.

Link to comment
Share on other sites

Sure. Just pass in another parameter, separating each with "&". The links' href would then look like
item.php?id=40&title=Shanghai

Note that in this case,you'll need a special handler in PHP to react on the supplied title of course with

$_GET['title']

if you use the above suggested URL.

That's great. Cheers, mate.Kurt
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...