I'm fairly new to php. I am trying to get my php to send multiple fields from a database record row from a single drop down box selection. I can pass my image name"imgName", and I'd also like to be able to pass a pdf file name "pdfName" as well.
Here is my select code:
Here is my select code:
Code:
<select name="imgName" onChange="chkFrm(this)">
<option value="" <?php if (!(strcmp("Choose", $_POST['imgName']))) {echo "selected";} ?>>Choose Proof Image</option>
<?php
do {
?>
<option value="<?php echo $row_proofImages['imgName']?>"<?php if (!(strcmp($row_proofImages['id'], $_POST['imgName']))) {echo "selected";} ?>><?php echo $row_proofImages['imgName']?></option>
<?php
} while ($row_proofImages = mysql_fetch_assoc($proofImages));
$rows = mysql_num_rows($proofImages);
if($rows > 0) {
mysql_data_seek($proofImages, 0);
$row_proofImages = mysql_fetch_assoc($proofImages);
}
?>
</select>
Comment