# Send 2 Values with Drop Down

**URL:** <https://forum.kirupa.com/t/send-2-values-with-drop-down/291025>\
**Category:** programming\
**Created:** [June 23, 2009, 8:42pm UTC](https://forum.kirupa.com/t/send-2-values-with-drop-down/291025 "2009-06-23T20:42:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drummer392](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@drummer392](https://forum.kirupa.com/u/drummer392)\
**Post date:** [June 23, 2009, 8:42pm UTC](https://forum.kirupa.com/t/send-2-values-with-drop-down/291025/1 "2009-06-23T20:42:12Z")

</div>

Hi there,

I am have got a drop down form in PHP and it sends the value inside of “catid” to a field in the database. I was wondering if there was a way I could also send the selected ‘category’ text into a completely different field in the table.

```php
 <?php
            echo '<select name="catid">';
	if (mysql_num_rows($catresult)) {
	while($row = mysql_fetch_assoc($catresult)) {
	echo "<option value=\"{$row['catid']}\">{$row['category']}</option>";
    }
	echo "</select>";
	}		
?>

```
