Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 727 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Sending email via image

Thread title: Sending email via image
Closed Thread  
Page 1 of 3 1 2 3 >
    Thread tools Search this thread Display Modes  
05-23-2005, 08:53 PM
#1
Gethin is offline Gethin
Gethin's Avatar
Status: Developer
Join date: Nov 2004
Location: In my house
Expertise:
Software:
 
Posts: 2,323
iTrader: 0 / 0%
 

Gethin is on a distinguished road

Send a message via MSN to Gethin

  Old  Sending email via image

I've got an email script for my new splash page (will be up shortly)
I want visitors to be able to send a message by pressing an image, rather than the boring standard 'submit' button.

How do I code it so it allows the image to essentially, be the submit button?

Thanks in advance,
How2Freelance.

05-23-2005, 09:11 PM
#2
Koobi is offline Koobi
Koobi's Avatar
Status: Member
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 312
iTrader: 0 / 0%
 

Koobi is on a distinguished road

  Old

Looking at the input element specification, it looks like src is a valid attribute so this should work:
HTML Code:
<input src="/path/to/myImage.png" type="submit" value="Submit" name="submit" />







and you can probably use CSS too if you want (better option IMO).

xhtml:
Code:
<input type="submit" value="Submit" name="submit" id="submit" />
css:
Code:
#submit
{
    padding: 10px;
    margin: 0;
    background: #fff url(/path/to/myImage.png) no-repeat;
}

05-23-2005, 09:23 PM
#3
Gethin is offline Gethin
Gethin's Avatar
Status: Developer
Join date: Nov 2004
Location: In my house
Expertise:
Software:
 
Posts: 2,323
iTrader: 0 / 0%
 

Gethin is on a distinguished road

Send a message via MSN to Gethin

  Old

Thanks Koobi, but it still doesn't work either way.
Must I put a hyperlink on the image to make it clickable? if so what would the link be?

Does anyone want to fix the problem for me, or suggest a good way of creating an email script.
I only want two boxes in this order:
Message
Email.

05-23-2005, 09:28 PM
#4
schroder is offline schroder
schroder's Avatar
Status: Member
Join date: Nov 2004
Location:
Expertise:
Software:
 
Posts: 159
iTrader: 0 / 0%
 

schroder is on a distinguished road

  Old

I believe it needs to be an image.

Code:
<input type="image" src="path/to/image.gif" name="Submit" value="Submit"/>

05-23-2005, 09:30 PM
#5
schroder is offline schroder
schroder's Avatar
Status: Member
Join date: Nov 2004
Location:
Expertise:
Software:
 
Posts: 159
iTrader: 0 / 0%
 

schroder is on a distinguished road

  Old

I have an e-mail script somewhere. I can send you that if you want.

05-23-2005, 09:33 PM
#6
Gethin is offline Gethin
Gethin's Avatar
Status: Developer
Join date: Nov 2004
Location: In my house
Expertise:
Software:
 
Posts: 2,323
iTrader: 0 / 0%
 

Gethin is on a distinguished road

Send a message via MSN to Gethin

  Old

Hmmm schroder what you said worked, except it went to:
--WEBBOT-SELF--

Duno why, er can you send me that script please, my email is gethinoakes@gmail.com

Thanks,
How2Freelance.

05-23-2005, 09:37 PM
#7
schroder is offline schroder
schroder's Avatar
Status: Member
Join date: Nov 2004
Location:
Expertise:
Software:
 
Posts: 159
iTrader: 0 / 0%
 

schroder is on a distinguished road

  Old

--WEBBOT-SELF--?

What do you have set for the action in the form? (I'm assuming your talking about the form submiting incorrectly or is it the image itself having problems?)

I have to head out really quick so I'll have to send the script when I get back. I can also edit it a little to match the fields you need if you want.

05-23-2005, 09:40 PM
#8
Gethin is offline Gethin
Gethin's Avatar
Status: Developer
Join date: Nov 2004
Location: In my house
Expertise:
Software:
 
Posts: 2,323
iTrader: 0 / 0%
 

Gethin is on a distinguished road

Send a message via MSN to Gethin

  Old

Originally Posted by schroder
--WEBBOT-SELF--?

What do you have set for the action in the form? (I'm assuming your talking about the form submiting incorrectly or is it the image itself having problems?)

I have to head out really quick so I'll have to send the script when I get back. I can also edit it a little to match the fields you need if you want.
Its a stupid thing frontpage added in, since im using it to code... it shouldn't.

Guess that'll be tomorrow for me then, thanks

05-23-2005, 10:28 PM
#9
schroder is offline schroder
schroder's Avatar
Status: Member
Join date: Nov 2004
Location:
Expertise:
Software:
 
Posts: 159
iTrader: 0 / 0%
 

schroder is on a distinguished road

  Old

Ended up finding the script faster then I thought, so I sent it to your email before leaving my home office. Cleaned it up a little so that you could fill in your information if you wanted. I'm not sure how comfratable you are with that stuff.

If you give me some time I can enhance it a little.

If you have any questions just let me know. I'm in a spot where I can communicate but not code (if that makes any sense).

Good luck on the new splash screen design

05-23-2005, 10:40 PM
#10
Gethin is offline Gethin
Gethin's Avatar
Status: Developer
Join date: Nov 2004
Location: In my house
Expertise:
Software:
 
Posts: 2,323
iTrader: 0 / 0%
 

Gethin is on a distinguished road

Send a message via MSN to Gethin

  Old

Originally Posted by schroder
Ended up finding the script faster then I thought, so I sent it to your email before leaving my home office. Cleaned it up a little so that you could fill in your information if you wanted. I'm not sure how comfratable you are with that stuff.

If you give me some time I can enhance it a little.

If you have any questions just let me know. I'm in a spot where I can communicate but not code (if that makes any sense).

Good luck on the new splash screen design
thanks for the script, although as you may have guessed I'm a bit confused by it all...

Closed Thread  
Page 1 of 3 1 2 3 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed