Jump to content

Validation in drop down php


BillyMako

Recommended Posts

Hey,

I have a javascript validation code which i need to attach to this drop down menu but i don't know how i can attach it so that it is activated when the list is clicked on.

 

        $zones_array = array();
        $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name");
        while ($zones_values = tep_db_fetch_array($zones_query)) {
          $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
        }
        echo tep_draw_pull_down_menu('state', $zones_array);

Link to comment
https://forums.phpfreaks.com/topic/120785-validation-in-drop-down-php/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.