Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2008
    Posts
    152
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Styled input file button no longer shows chosen file

    I'm using an Upload Script, and I've been working on trying to style the 'Choose File Button' (input file button)
    which was a challenge to be styled for multiple browsers, but finally works with Google, IE and FF.

    However, now that I've successfully styled the input file button, when a file is now chosen, the chosen file name no longer appears, prior to Submit.

    I've attached an image of the code changes I made, plus some CSS styling, and this addition:

    Code:
    label input[type="file"] {
        position: relative;
        top: -1000px;
    Any suggestions/ideas/remedy on how to get the chosen file to show (or something to show an action has taken place) will be appreciated

    Styled input file button no longer shows chosen file-php-html.png

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,346
    Thanks
    60
    Thanked 527 Times in 514 Posts
    This is not a php problem!
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Posting Permissions

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