Perad Posted August 26, 2007 Share Posted August 26, 2007 Form <form action="build.php?page=process&part=<?php print $row['itemcode'] ?>" class="part" enctype="multipart/form-data" method="post"> <label>Item Code</label> <input type="text" name="itemcode" value="<?php print $row['itemcode']; ?>" /><br /> <label>Item Name</label> <input type="text" name="item" value="<?php print $row['item']; ?>" /><br /> <label>Brand/Model</label> <input type="text" name="model" value="<?php print $row['model']; ?>" /><br /> <label>Weight</label> <input type="text" name="weight" value="<?php print $row['weight']; ?>" /><br /> <label>Price</label> <input type="text" name="price" value="<?php print $row['price']; ?>" /><br /> <label>Image Name</label> <input type="file" name="imagefile" value="<?php print $row['image'] ?>" /><br /> <input type="submit" name="submit" value="submit" /> </form> Loop foreach($_POST as $K => $V) { echo $K; } Result itemcode item model weight price submit Where is the file field!? Quote Link to comment https://forums.phpfreaks.com/topic/66744-the-mystery-of-the-lost-_post-item/ Share on other sites More sharing options...
448191 Posted August 26, 2007 Share Posted August 26, 2007 In $_FILES. Quote Link to comment https://forums.phpfreaks.com/topic/66744-the-mystery-of-the-lost-_post-item/#findComment-334465 Share on other sites More sharing options...
MadTechie Posted August 26, 2007 Share Posted August 26, 2007 more detail in $_FILES['imagefile'] do a print_r($_FILES); see Chapter 38. Handling file uploads Quote Link to comment https://forums.phpfreaks.com/topic/66744-the-mystery-of-the-lost-_post-item/#findComment-334467 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.