Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_draw_pull_down_menu


patator

Recommended Posts

Hello

 

The tep_draw_pull_down_menu drives me crazzy....

Look at this page and you will see that if you select certain values of the second drop down (ie 5.0 to 5.2) and post the form, the value is set back to "CHOIX" after posting the form.

After posting the form, the drop down should keep the value indicated by the user.

 

It works fine with all the values of the first combo and only with some of the second combo.

 

Could somebody understand what happens ?

 

 

Thanks

Patrice

 

<tr>
<td class="main" ><?php echo fitting_length; ?>   </td>
<td class="main"><?php  echo tep_draw_pull_down_menu_fitting('length_id', $length_array, $length_array[0]['height'], '" size="' . 1 . '" style="width: 120"') . tep_hide_session_id();?></td>
<? //onChange="FormChange(myform.length_id.form);?>
</tr>
<tr>
<td class="main" ><?php echo fitting_wrist; ?>   </td>
<td class="main" ><?php  echo tep_draw_pull_down_menu_fitting('wrist_id', $wrist_array, $wrist_array[0]['wrist'], '" size="' . 1 . '" style="width:120"') . tep_hide_session_id();?></td>
</tr>

Link to comment
Share on other sites

Hello

 

The tep_draw_pull_down_menu drives me crazzy....

Look at this page and you will see that if you select certain values of the second drop down (ie 5.0 to 5.2) and post the form, the value is set back to "CHOIX" after posting the form.

After posting the form, the drop down should keep the value indicated by the user.

 

It works fine with all the values of the first combo and only with some of the second combo.

 

Could somebody understand what happens ?

Thanks

Patrice

 

<tr>
<td class="main" ><?php echo fitting_length; ?>   </td>
<td class="main"><?php ?echo tep_draw_pull_down_menu_fitting('length_id', $length_array, $length_array[0]['height'], '" size="' . 1 . '" style="width: 120"') . tep_hide_session_id();?></td>
<? //onChange="FormChange(myform.length_id.form);?>
</tr>
<tr>
<td class="main" ><?php echo fitting_wrist; ?>   </td>
<td class="main" ><?php ?echo tep_draw_pull_down_menu_fitting('wrist_id', $wrist_array, $wrist_array[0]['wrist'], '" size="' . 1 . '" style="width:120"') . tep_hide_session_id();?></td>
</tr>

 

it may be possible it's reading the default value ... try to replace by the $http_get_vars value.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...