Jump to content

The mystery of the lost $_POST item...


Perad

Recommended Posts

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!?

Link to comment
https://forums.phpfreaks.com/topic/66744-the-mystery-of-the-lost-_post-item/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.