Results 1 to 10 of 10

Thread: upload file

  1. #1
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default upload file

    What's the code of the fields to upload files in a contactform (gifs, docs, jpgs, pngs, html, ...) ? And how does a cookie to reminder language-choices look like ?

  2. #2
    Join Date
    Dec 2006
    Location
    In my home
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the code to upload a file? you mean link

  3. #3
    Join Date
    Dec 2006
    Location
    In my home
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    and if you mean download or link the code is <a href="word.doc,html.htm,html,html,png.png,gif.gif,cur.cur,ani.ani">stuff</a>

  4. #4
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    No, I meant it as it is written:

    What's the code of the fields to upload files in a contactform (gifs, docs, jpgs, pngs, html, ...) ?

  5. #5
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Is this what you mean?

    Code:
    <input type="file" name="fieldname">
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  6. #6
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

    Default

    No ! In some contactforms, you can upload images in the message you wish to send. Should look for an example in English.

  7. #7
    Join Date
    Dec 2006
    Location
    In my home
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    HTML Code:
    <input type="file" name="fieldname">
    that is the right code to do a browse or upload a pictue so mabe you should try it before you yell at him

  8. #8
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Look at actual FTP upload commands with PHP if that's what you're looking for. The above is correct if you want a user to be able to browse their computer for a file (whos location will be placed in corresponding box). The actual uploading requires a PHP function.
    http://ca.php.net/manual/en/ref.ftp.php
    - Mike

  9. #9
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by mburt View Post
    The actual uploading requires a PHP function.
    Or any other server side language with uploading capabilities.

    EDIT: Sorry Mike, had to throw that in.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  10. #10
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    927
    Thanks
    121
    Thanked 2 Times in 2 Posts

Bookmarks

Posting Permissions

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