SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loading image and sending to next page

    Can someone please help me with this image loading

    I have a simple html form that should upload an image:
    HTML Code:
    <html><body>
    <form method="post" action="display.php" enctype="multipart/form-data">
    <input type="hidden" name="max_file_size" value="55000"><input type="file" name="image"><br>
    <input type="submit">
    </form></body></html>
    and display the image file name in the following page:
    HTML Code:
    <html><body>
    <form name="display.php" method="POST">
    <php echo $_POST['image']; ?>
    <input type="submit">
    <input type="hidden" name="image" value="<?php echo $_POST['image']; ?>">
    </form></body></html>
    But nothing happens

    What do I need to do, am confused

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Check out the PHP manual's section "Handling file uploads":
    http://us3.php.net/manual/en/features.file-upload.php

  3. #3
    SitePoint Member
    Join Date
    May 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thankyou for the link Dan.

    Have spent the last 2 hours at that page and tried understanding, but unfortunatly its only confused me more. I know it must be straight forward enough, but just can't get me head around it :-(


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
  •