Web Hosting Talk







View Full Version : Whats Wrong with this?


-Edward-
04-20-2002, 09:49 AM
I'm slowly changing all buttons on my site to this format and i've got one that doesnt work :


<input type="image" type="submit" src="http://www.kchat.org/images/leave.gif" name="logoff" value="Logoff" target="top">

When i click it instead of compeltly leaving the script like it does without an image it just fires the chatform to the top, if i take the image part out it works right. any ideas? It should break free from the script and frames.

akashik
04-20-2002, 11:55 AM
This is nowhere near a complete answer so use it as you will :) I've had the same issue myself at time with certain scripts. For some reason they seem to be expecting the submit tag, rather than the image tag. As a result the resulting action doesn't work as planned. To date I haven't found a work around (not that I've been trying too hard). Hopefully someone has a solution for the both of us :)

Greg Moore

Studio64
04-21-2002, 07:08 PM
I may be wrong but I assumed that

type="image" is the exact same as type="submit" in function except for the obvious use of an image...

I believe try it w/ only type="image" and leave out any mention of submit....

That might be your problem.