kurt.santo Posted September 17, 2007 Report 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 Report 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 Report 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 Report 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 Report 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
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 accountSign in
Already have an account? Sign in here.
Sign In Now