SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Photo upload problem

    I really don't know much about javascript, but I have this form I have to deal with.
    How do I get the photos into a folder or sent by email?
    Code:
    <form name="form1" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    
      <label for="upload[]">File 1:</label>
      <input type="file" name="upload[]" size="30"><br>
      <label for="upload[]">File 2:</label>
      <input type="file" name="upload[]" size="30"><br>
      <label for="upload[]">File 3:</label>
      <input type="file" name="upload[]" size="30"><br>
      <!-- Add here more file fields if you need. -->
      
    </form>
    
    <form  name=form method="post" action="">
    <input type=text name="first" size="20"> First Name<BR>
    <input type=text name="last" size="20"> Last Name<BR>
    <input type=text name="email" size="20"> E-Mail<BR><BR>
    <input type=button value="Submit Request" onclick="verify();">
    
    
    
    
    </form>

  2. #2
    SitePoint Enthusiast TriLLi's Avatar
    Join Date
    Feb 2010
    Location
    BiH, Bugojno
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That can't be done with javascript, javascript is client side, you need server side code (php, c# ....) so you can accept files from POST and save them somewhere on server (db or disk).


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
  •