handle with listbox in php

This slect tion is in form

<form id="form1" name="form1" method="post" action="checkque_insertion_1.php">

How can i receive only the value of
<?php echo $row_ReSeActi['idactivity']?>

in page checkque_insertion_1.php

idactivity is primary key that i want to insert in to table   it can slect only one from listt
<tr>
      <td>&nbsp;</td>
      <td width="20">&nbsp;</td>
      <td><label for="select">¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿</label>
        <select name="select" id="select" title="">
          <?php
do {  
?>
          <option value="<?php echo $row_ReSeActi['idactivity']?>"><?php echo $row_ReSeActi['idactivity']?>   <?php echo $row_ReSeActi['activitydate']; ?>  <?php echo $row_ReSeActi['activityname']; ?>  </option>
          <?php
} while ($row_ReSeActi = mysql_fetch_assoc($ReSeActi));
  $rows = mysql_num_rows($ReSeActi);
  if($rows > 0) {
      mysql_data_seek($ReSeActi, 0);
	  $row_ReSeActi = mysql_fetch_assoc($ReSeActi);
  }
?>
      </select></td>
      
      <td width="20">&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>

Open in new window

teeraAsked:
Who is Participating?
 
COBOLdinosaurCommented:
$_POST['select'] will only return one value, the value of the selected option.

Cd&
0
 
teeraAuthor Commented:
Hi COBOLdinosaur

But $_POST['select']

will provide
<?php echo $row_ReSeActi['idactivity']?>   <?php echo $row_ReSeActi['activitydate']; ?>  <?php echo $row_ReSeActi['activityname']; ?>

I want only <?php echo $row_ReSeActi['idactivity']?>
0
 
teeraAuthor Commented:
Thank you
0
 
COBOLdinosaurCommented:
That is what you will get.  It is what you are setting as the value and that is what you will get.

 <option value="<?php echo $row_ReSeActi['idactivity']?>">
Sets the value of the option.


Cd&

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.