Problem with variables and site search?

Hello guys,

Happy new year and please forgive me for my bad English. I am using the phpnuke portal and am facing some problem. The problem is with my header part… as I change the html header to flash and now I can’t add one variable and also I can’t use the site search. Below is my PHP code where the variable defines:

    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    if ($username == "Anonymous") {
	$theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">"._LOGIN."</a> or 
<a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
    } else {
	$theuser = "&nbsp;&nbsp;"._BWEL." $username!";

in html if I just add “$theuser” the variable work. But I don’t know how to add this variable to flash.

And the second problem is the site search. Below is the code for the site search:

“<form method="post" action="modules.php?op=modload&name=Search&file=index">
  <input type="text" name="query" style="width:120; height:18; FONT-SIZE:10px; Color:#000000;">
 <input type="image" value="search" src="themes/dhumketu/images/headerGobutton.gif" border="0">  

How can I make the site search work in flash?

If you guys need any other information please let me know??