Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 10:20:47 AM

Pages: [1]   Go Down
  Print  
Author Topic: send form  (Read 313 times)
space145
Newbie
*
Offline Offline

Posts: 2


WWW
« on: December 27, 2002, 09:39:00 PM »

hello

i want to create a form where the visitor of can vote for a wallpaper. instead of the ordinary "send" button to send the voting to my email i would like to use a picture that i created. how can i do this? when i choose <input type="submit"> always this ugly button apears!!!

thanks for your help!!!
juerg
Logged
stephan
Guest
« Reply #1 on: December 27, 2002, 11:07:00 PM »

Recently, I had the same problem.

Here is what you need to type:

 
code:
 <a href="javascript:document.enterdetails.submit();"><img src="whatever.jpg" border="0"> Next</a> 

That example is if your form is called "enterdetails"

At the top, in the "form" section, you have to give the form a name.
Logged
Zorfox
Spaceship Navigator
*****
Offline Offline

Posts: 77


WWW
« Reply #2 on: December 28, 2002, 05:32:00 AM »

Much simpler way:

code:
<input type=image src="image.gif">

Does the same thing as the javascript thing,  but looks cleaner and is easier to type.
Logged

cheese
stephan
Guest
« Reply #3 on: December 29, 2002, 09:11:00 AM »

Yeah, that is actually simpler, and possibly better.

Do you know if it's supported by older browsers?

I'm just wondering which one would be best supported.

I need to use something similar for my site, so it would be nice to know.
Logged
space145
Newbie
*
Offline Offline

Posts: 2


WWW
« Reply #4 on: December 29, 2002, 03:15:00 PM »

COOOOL!!!

you guys are greate!!! thanks a bunch!! perhaps you can help me with another problem that i have now. this won't be a problem for you, i am sure!

some part of the form now looks like that:

<FORM ACTION="http://home.tiscalinet.ch/cgi/mailer.pl "METHOD="POST">
<INPUT TYPE=hidden NAME="recipients" VALUE="me@mypage.ch">
<INPUT TYPE=hidden NAME="thanks" VALUE="http://www.mypage.ch/wallpaper/wallpaper.htm">
<INPUT TYPE=hidden NAME="error" VALUE="http://www.mypage.ch/wallpaper/wallpaper.htm">
<INPUT TYPE=hidden NAME="subject" VALUE="Rating for Wired">
<input type=image src="vote.gif" width="32" hight="7">

that means, that after the visitor hits the "vote.gif" i receive a mail with the rating and the "wallpaper.htm" opens again. now i would like that a little windows opens additionally (i got the javascript for that) saying something like "thanks for voting". somehow i'm just able to either open the additional window or to receive the mail. both together doesn't work at all, unfortunately!

thanks for your help again!!!

juerg
Logged
stephan
Guest
« Reply #5 on: December 29, 2002, 08:14:00 PM »

You would need to put some javascript in the bit where it says "thanks for sending" or whatever, in the script.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: