On Fri, 23 Jul 2004 14:23:27 -0400, Brent Baisley wrote:
> Took me a little while to figure out what you were asking. You can do
> something like this for easy readability.
> if ($recordset['field'] != "1") {
> ?>
>
> onMouseOver="MM_swapImage('PreviousPage','','/URL/
> ButtonName.gif',1)">
On Fri, 23 Jul 2004 14:43:29 -0400, John W. Holmes wrote:
> Robb Kerr wrote:
>> I've got a conditional button that needs to appear/hide on my page
>> depending upon the contents of a field in my database. The button is an
>> image and has a long URL and JavaScript for image rotation attached to it
Robb Kerr wrote:
I've got a conditional button that needs to appear/hide on my page
depending upon the contents of a field in my database. The button is an
image and has a long URL and JavaScript for image rotation attached to it.
Needless to say, the href is quite long and includes several "'"
cha
Took me a little while to figure out what you were asking. You can do
something like this for easy readability.
if ($recordset['field'] != "1") {
?>
onMouseOver="MM_swapImage('PreviousPage','','/URL/
ButtonName.gif',1)">
src="/URL/ButtonName.gif" alt="Previous Page" name="Previous Page"
width
> Needless to say, the href is quite long and includes several "'"
> characters. My conditional works great but I want to know if there is an
> easy way to escape the whole href so that the "'" characters will not be
> seen as PHP quote marks. See below...
urlencode will escape the quotes
--
PHP
5 matches
Mail list logo