W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

PHP tags within a link

From: Ian M. Evans <ianevans@digitalhit.com>
Date: Fri, 24 Nov 2000 12:30:52 -0500
To: <html-tidy@w3.org>
Message-ID: <000001c0563c$4b929ce0$de2ee540@IanEvans>
Just wondering how to handle the insertion of PHP variables or scripts that
occur within a link.

For example:

<a
href="http://digitalhit.master.com/texis/master/search/mysite.html?q=<?php
echo $celebsearch; ?>">

Which grabs the variable celebsearch and inserts it into the link at the
server so all the browser would get is:
<a
href="http://digitalhit.master.com/texis/master/search/mysite.html?q=Bruce+W
illis">

Tidy turns that into:

<a
href="http://digitalhit.master.com/texis/master/search/mysite.html?q=&lt;?ph
p echo $celebsearch; &gt;>">

Which is proper form if the < and > ever made it to the browser, but as PHP
is server-side they never do.

Is there anything I can do to stop tidy touching the <?php and ?> within a
link? It leaves them alone properly outside a link.

Thanks.



--
Ian Evans
Chairman & Executive Producer
Digital Hit Entertainment
http://www.digitalhit.com
Received on Friday, 24 November 2000 12:31:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT