You are here: Re: form « All PHP « IT news, forums, messages
Re: form

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация