I know this is basic, but i have no idea on how to fix this! I have an image in a html page, and i wanto to make a link to a php page when you click on it. I have done it thousands of times, but now it just won't work =S when i click on the image it appear a window asking me if i wan't to download the php file! This is the code i'm using:
<img src="img/enviar.jpg" border="0" onClick="document.enviar.submit();">
Can anybody help me? Thanks!
hyperlink to php file
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
If that image isn't being used to submit a form, you should wrap the image in an anchor tag, sans the javascript:
Code: Select all
<a href="something.php"><img src="asdf.jpg" border="0" /></a>