I don't know but this button wont do what i tell it to do

<img id="butoon" src="images/lft-button2.png" onmouseover="hover('l')" onmouseout="unhover('l')" onmousedown="clickonit('l')" onmouseup="clickup('l')" onClick="window.open('gallery.php?blu=<?PHP echo "$q"?>&subf=<?PHP echo "$subf"?>','_self')" style="cursor: pointer;" />

and in another php it worked... i don't know why it isnt working in this php....

Member Avatar for LastMitch

@freakvista

I don't know but this button wont do what i tell it to do

There are couple reason:

1) Is your id=butoon or id=button?

2) When you echo something it should include ; - semi-colon from this <?PHP echo "$q" ?> to this <?PHP echo "$q"; ?>

Now try the code again:

<img id="button" src="images/lft-button2.png" onmouseover="hover('l')" onmouseout="unhover('l')" onmousedown="clickonit('l')" onmouseup="clickup('l')" onClick="window.open('gallery.php?blu=<?PHP echo "$q"; ?>&subf=<?PHP echo "$subf"; ?>','_self')" style="cursor: pointer;" />
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.