Posted by Roger Bigras on 10/10/78 11:25
sentinel wrote:
> Here is the probl
>
> i have a button
>
> <center><input class=button type="submit"
> value="Login"/></center></form>
>
> and want to replace it with an image
>
> <a href="link.php"><img src="imgs/btn_normal.gif" border="0"
> height="25"
> onMouseOver="this.src='imgs/btn_hover.gif'"
> onMouseOut="this.src='imgs/btn_normal.gif'"
> onMouseDown="this.src='imgs/btn_down.gif'"
> onMouseUp="this.src='imgs/btn_normal.gif'"/></a><br>
>
>
> and want that the image still has the same function as the button did
>
>
> how can i do that?
>
>
> Thanks.
choice #1:
What has this to do with PHP?
Change <input class=button type="submit" value="Login"/> to <input
class=button type="image" value=<img src="Your_Pic_Location_Here.jpg" >
as mentioned by Rincwind
or in your a href tag you can also add the following code
onclick="formname.submit"
where the formname is the name you gave your <form name='formname'
method='post' action='{$_SERVER['PHP_SELF']}'> tag -- not sure about
cross browser compability tough. the input tag should be used.
[Back to original message]
|