<li><label for="lot_image" >Lot Image File</label><br /> <input type="text" name="lot_image" id="lot_image" value="<?php echo $item->getLot_image(); ?> " /></li> <li><label for="lot_number">Lot Number</label><br /> <input type="text" name="lot_number" id="lot_number" value="<?php echo $item->getLot_number(); ?> " /></li> <li><label for="lot_price" >Lot Price</label><br /> <input type="text" name="lot_price" id="lot_price" value="<?php echo $item->getLot_price(); ?> " /></li> <li><?php echo $cat_dropdown; ?> </li> </ul> <?php // create token $salt = 'SomeSalt'; $token = sha1(mt_rand(1, 1000000) . $salt); $_SESSION['token'] = $token; ?> <input type="hidden" name="cat_id_in" id="cat_id_in" value="<?php
<li><label for="lot_image" >Lot Image File</label><br /> <input type="text" name="lot_image" id="lot_image" value="<?php echo htmlspecialchars($item->getLot_image()); ?> " /></li> <li><label for="lot_number">Lot Number</label><br /> <input type="text" name="lot_number" id="lot_number" value="<?php echo (int) $item->getLot_number(); ?> " /></li> <li><label for="lot_price" >Lot Price</label><br /> <input type="text" name="lot_price" id="lot_price" value="<?php echo (double) $item->getLot_price(); ?> " /></li> <li><?php echo $cat_dropdown; ?> </li> </ul> <?php // create token $salt = 'SomeSalt'; $token = sha1(mt_rand(1, 1000000) . $salt); $_SESSION['token'] = $token; ?> <input type="hidden" name="cat_id_in" id="cat_id_in" value="<?php