Hey All,

I have following situation with me.

 function listPostings($tid){
	$output = '';	
        $output = drupal_get_form('my_posting');	
    return $output;
 }

function my_posting($tid) {
    // code which returns me the postings/nodes under the term($tid)
    // which  is well themed 
}

I cannot able to pass the "$tid" to function "my_posting".
Since am not able to pass the $tid my query shows me the sql error.

Please tell me, am i write? or is there is any another way to achieve it.

Comments

depace’s picture

	function __test()
	{
		$str_val	=	'dexter';
		drupal_get_form('__test_form', array($str_val));
	}
	
	function __test_form($str_vall)
	{
		var_dump($str_vall);
	}