web hosting and development forums
Web Design and Development Forums Archive


Index - JavaScript forum

how to make the submit button a custom image


Post reply

I have a little icon that a user can click on to do something right now. I want to change it from a link to a form, but keep the look. Is there a way to make the submit button a custom image? Or do I need to use JS to submit the form?
<input type="image"> might be an option...
froomzeryou 're very helpful in this channel
froomzer, if I do that, I still need an onclick="this.form.submit();" right?
Gladis, Wrong.
froomzer, have you heard "CodeMonkey" by Jonathon Coulton?
No Gladis, you don't at all
froomzer, you should get it from jonathancoulton.com when you are done with your boring meeting. plantino, froomzer, So type="image" will submit by default? Or is there something OTHER than the JS that I need to do?
Yes. No.
Cool Ok, I see that it passes a couple extra values, but does exactly what I wanted. Thanks (it passes your_input_name_x and your_input_name_y)
Yep, that's what it for....
Gladis, only in PHP, AFAIK. The names of the extra variables are actually your_input_name.x and your_input_name.y but '.' isn't valid in a variable name in PHP




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com