Results 1 to 9 of 9

Thread: Upload through HTML

  1. #1
    Join Date
    May 2008
    Posts
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Upload through HTML

    Hi everyone. here i am once again (lol like the song).

    Looking for some help if you please?

    I have made a html form that works together with dynaform but i have a problem and i can not upload files. It only shows the name of the file and the type ex. jpeg

    can someone help?

    I give you a very simple form of what i use: (mine has a lot of things in it so i made it simple)

    HTML Code:
    <CENTER>
    <FORM action="http://www.MYWEBSITE.DOMAIN/dynaform.php" method="POST" sty0le="font-size : 10px;font-family : Verdana;color : white;" charset=windows-1253><input type='hidden' name='rec_mailto' value='MAIL@'><input type='hidden' name='rec_subject' value='SUBJECT'><input type='hidden' name='rec_thanks' value='THANKS URL'>
    
    <INPUT type="text" size="20" name="Your name" value="Your name" onfocus="javascript:if(this.value=='Your name') {this.value='';}" onblur="javascript:if(this.value=='') {this.value='Your name'}" style="border-top-width : 1px;border-right-width : 1px;border-bottom-width : 1px;border-left-width : 1px;border-color : blue blue blue blue;">
    
    <br><br>
    
    <label for="fileatt">File1:</label>
    <input id="fileatt" type="file" name="fileatt"  tabindex="1" />
    
    <br>
    
    Comments:
    <TEXTAREA name="Comments" rows="5" cols="50" style="border-top-width : 1px;border-right-width : 1px;border-bottom-width : 1px;border-left-width : 1px;border-color : blue blue blue blue;"></TEXTAREA>
    
    <br><br>
    
    <INPUT type="submit" value="Send it" style="font-size : 10px;font-family : Verdana;font-weight : bold;color : navy;background-color : white;"></FORM>
    
    </CENTER>
    Is there some other html or something like dynaform that i can use to upload my files please?

    Thank you in advance.

    ps: sorry my English are bad

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    This can't be done with HTML alone. You need server-side scripts:

    You might find this link useful:
    http://www.tizag.com/phpT/fileupload.php
    http://www.w3schools.com/PHP/php_file_upload.asp
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    kosmasKosmakos (10-29-2008)

  4. #3
    Join Date
    May 2008
    Posts
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Oh, i see! great! thanks a lot!!!

    Edit: well i think that i may have explain it wrong. that is my mistake. what i need to have is a contact form in wich i will have up to 2-3 files uploaded, and what i need is that these files will be sent with the form to a mail and appear like attachments.

    Is there something that can do that?
    Last edited by kosmasKosmakos; 10-29-2008 at 11:23 AM.

  5. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Rangana's suggestion is still right. You would need some sort of server-side script to do this. If your server supports PHP, here is a tutorial on how to script such functionality.

  6. #5
    Join Date
    May 2008
    Posts
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Medyman View Post
    Rangana's suggestion is still right. You would need some sort of server-side script to do this. If your server supports PHP, here is a tutorial on how to script such functionality.
    here where? here "here" or here up there?

    yes my server supports php

    thanks

  7. #6
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by rangana View Post
    This can't be done with HTML alone. You need server-side scripts:

    You might find this link useful:
    http://www.tizag.com/phpT/fileupload.php
    http://www.w3schools.com/PHP/php_file_upload.asp
    see two links above

  8. #7
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by kosmasKosmakos View Post
    here where? here "here" or here up there?

    yes my server supports php

    thanks
    lol. Sorry. I had the page open. I guess I just forgot to link it.

    http://www.webcheatsheet.com/PHP/sen...attachment.php

  9. The Following User Says Thank You to Medyman For This Useful Post:

    kosmasKosmakos (10-30-2008)

  10. #8
    Join Date
    May 2008
    Posts
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Medyman View Post
    lol. Sorry. I had the page open. I guess I just forgot to link it.

    http://www.webcheatsheet.com/PHP/sen...attachment.php
    hihihi! its ok. thanks. i really apreciate it!

  11. #9
    Join Date
    Nov 2008
    Location
    India
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanx a lot

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
  •