www.webdeveloper.com
Results 1 to 4 of 4

Thread: Help with changing default "Choose File" button image in Upload Form

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    35

    Help with changing default "Choose File" button image in Upload Form

    I'd like to replace the default "Choose File" button with an image of my own.
    Here is the code, I believe, and an image of it currently:

    Code:
    <div class='controls'>
    <input id="file" type="file" name="file" />
    <?php //echo form_error('file');   ?></div>
    Any help will be greatly appreciatedChooseFile1.png

  2. #2
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    708
    What image are you talking about? I'm not aware of one as part of normal html in my browser (IE). Also why are you asking for help with a sample that contains no code???
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL | E_NOTICE);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

  3. #3
    Join Date
    Feb 2005
    Posts
    35
    I'm not sure what you're talking about, either I guess.
    The image I attached shows a box with the words Choose File in it. I'd like to get help with styling it.
    As for code, as far as I can see, I posted some code.
    Any other help would be appreciated.

  4. #4
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    708
    You have a png file that looks like a button. Is it in fact a button or will you be using it to overlay a 'real' control? As for changing it, I'm guessing you would need to find another file to use or use some image manipulation software.

    As for your post - yes you posted some html. But nothing else, so what are we supposed to help you with?
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL | E_NOTICE);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles