hi.. friends...
i have a drop down list in my php code. i need to check the drop down list is set or not. for that what is the code. i heard that there is no php code for that. javascript is needed.so if anyone know that please help me.
my code is here.
<?php
$database="sms"; /* DB name */
$host="localhost";
$user="root"; /* Set DB Username */
$pass=""; /* Set DB password*/
mysql_pconnect($host,$user,$pass); /* DB connect....*/
mysql_connect ($host,$user,$pass);
mysql_select_db($database) or die( "Unable to select database"); /*DB Select*/
function orgresult()
{
display some tables.....etc...
}
if(isset($_POST['submit'])) /*ON Click search button Show Table */
{
// HERE I NEED THE CODE TO CHECK THE DROP DOWN LIST IS SET OR NOT.
// IF THE DROP DOWN LIST IS SET
{
orgresult();
}
//ELSE
{
alertbox;
}
}
?>