PHP Simplicity Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Guest posting is allowed. Again!

Author Topic: using an image as the upload button  (Read 1515 times)

0 Members and 1 Guest are viewing this topic.

gdog26

  • Newbie
  • *
  • Offline Offline
  • Posts: 8
    • View Profile
using an image as the upload button
« on: November 16, 2009, 06:02:31 PM »

Hello,


Would it be possible to change the upload button and use a custom image instead?

I believe this is the line to change, but whatever I do, it won't work
Code: [Select]
        <input type="submit" value="  '.$txt['submit'].'  " name="SFUsubmit" '.$disabled.'/>
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: using an image as the upload button
« Reply #1 on: November 18, 2009, 04:37:07 PM »

It is the right line.
did you try:
Code: [Select]
<input type="image" src="submit.gif" alt="Submit" /> and still didn't work?
Logged

We don't need a reason to help people

gdog26

  • Newbie
  • *
  • Offline Offline
  • Posts: 8
    • View Profile
Re: using an image as the upload button
« Reply #2 on: November 21, 2009, 09:04:10 AM »

Well, the upload button will have the image with your line of code.  But, when I click on the image nothing will happen, it seems the "image" wont perform as a submit like it was doing before.
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: using an image as the upload button
« Reply #3 on: November 27, 2009, 05:25:49 PM »

hmmm..
I really don't know. Haven't used images as buttons before.
Logged

We don't need a reason to help people
 

+ Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
Are you a bot/spammer?: