Page 1 of 1

including html file in another file

Posted: Wed Sep 29, 2010 10:10 am
by jlvollmer
I have researched this and cannot find a great solution. I have a php that includes a html file. The html file has a link <a href="http://site.com?var=j&var2=k&var3=k">My link</a>

The problem is the & part of the link converts to & when viewing the resultant web page. I need the & to stay as it is, not convert to &.

Anybody had this problem before?

Thanks,
J

Re: including html file in another file

Posted: Wed Sep 29, 2010 10:45 am
by AbraCadaver
It's not a problem & is the HTML entity for &. It appears on the HTML rendered page as & but if you view the source of the page in the browser it will be &.

Re: including html file in another file

Posted: Wed Sep 29, 2010 12:20 pm
by jlvollmer
:oops: I feel silly.

Thank you,
JV