Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

array with default value


tpokala

Recommended Posts

Posted

Hello,

 

I have code similar to:

 

echo '<div class="headListL">'.TEXT_SHOW_VIEW.'</div><div class="headListR">';

$options = array();

$options[] = array('id' => 'box', 'text' => TEXT_VIEW_BOX);

$options[] = array('id' => '', 'text' => TEXT_VIEW_STD);

echo tep_draw_pull_down_menu('view', $options, (isset($view) ? $view : ''), 'onchange="this.form.submit()" class="opt_select"');

 

I would like to make options "box" default. How can I do it?

Archived

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

×
×
  • Create New...