including html file in another file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jlvollmer
Forum Newbie
Posts: 2
Joined: Wed Sep 29, 2010 10:02 am

including html file in another file

Post 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
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: including html file in another file

Post 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 &.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
jlvollmer
Forum Newbie
Posts: 2
Joined: Wed Sep 29, 2010 10:02 am

Re: including html file in another file

Post by jlvollmer »

:oops: I feel silly.

Thank you,
JV
Post Reply