The Cache: Technology Expert's Forum

Level 2 Cache: Speciality Items => PHP => Topic started by: webinfoguy25 on July 16, 2014, 01:44:11 PM



Title: PHP Get a title=
Post by: webinfoguy25 on July 16, 2014, 01:44:11 PM
How do i take the  value and add it to the url in the href?  (NOTE*=I need to pass this variable to multiple links on this page: http://contourmd.net/Brands/Oleeva/)  So if add one of the strings to the url of http://contourmd.net/Brands/Oleeva/?id=12349 its not going to work for the rest of the links.
Code:
<a title="">


Code:
<p>37VM-10<br>Oleeva Vertical Mastopexy Shape (Each)<br><a title="12349" href="/Oleeva-Vertical-Mastopexy-Shape-Each">
Output would look like this after php renders:

Code:
<p>37VM-10<br>Oleeva Vertical Mastopexy Shape (Each)<br><a title="12349" href="/Oleeva-Vertical-Mastopexy-Shape-Each/?id=12349">




/Oleeva-Vertical-Mastopexy-Shape-Each/?id=12349


Title: Re: PHP Get a title=
Post by: perkiset on July 18, 2014, 03:45:01 PM
Totally confuse me, because you just added a value at the end of the URL. So what are you asking?

But on a side note, you say, "you want to pass that to several URLs..."

so I think you should consider cookies rather than just URL params.