This code work properly in Dreamweaver but it's not work in drupal.I think prolem having in JavaScript
How to redirect the page in drupal
function reload(form)
{
var val=form.cat.options[form.cat.options.selectedIndex].value;
self.location='dd1.php?cat=' + val ;
}
<?php
//***************************************
// This is downloaded from
www.plus2net.com //
/// You can distribute this code with the link to
www.plus2net.com ///
// Please don't remove the link to
www.plus2net.com ///
// This is for your learning only not for commercial use. ///////
//The author is not responsible for any type of loss or problem or damage on using this script.//
/// You can use it at your own risk. /////
//*****************************************
$dbservertype='mysql';
$servername='localhost';
// username and password to log onto db server
$dbusername='root';
$dbpassword='';
// name of database
$dbname='land';
////////////////////////////////////////
////// DONOT EDIT BELOW /////////
///////////////////////////////////////
connecttodb($servername,$dbname,$dbusername,$dbpassword);
function connecttodb($servername,$dbname,$dbuser,$dbpassword)
{
global $link;
$link=mysql_connect ("$servername","$dbuser","$dbpassword");
if(!$link){die("Could not connect to MySQL");}