kurt.santo Posted September 17, 2007 Share Posted September 17, 2007 Is there a way to pass the text in between the <a href> and </a> as parameters to the title tag?Kurt Link to comment Share on other sites More sharing options...
boen_robot Posted September 17, 2007 Share Posted September 17, 2007 Exactly what do you mean? Could you give some real (full code) example of what should automatically do what with what? Link to comment Share on other sites More sharing options...
kurt.santo Posted September 17, 2007 Author Share Posted September 17, 2007 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 More sharing options...
boen_robot Posted September 17, 2007 Share Posted September 17, 2007 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 More sharing options...
kurt.santo Posted September 17, 2007 Author Share Posted September 17, 2007 Sure. Just pass in another parameter, separating each with "&". The links' href would then look likeitem.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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.