# Problem with variables and site search?

**URL:** <https://forum.kirupa.com/t/problem-with-variables-and-site-search/39406>\
**Category:** Uncategorized\
**Created:** [January 7, 2004, 2:22am UTC](https://forum.kirupa.com/t/problem-with-variables-and-site-search/39406 "2004-01-07T02:22:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joy1856](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@joy1856](https://forum.kirupa.com/u/joy1856)\
**Post date:** [January 7, 2004, 2:22am UTC](https://forum.kirupa.com/t/problem-with-variables-and-site-search/39406/1 "2004-01-07T02:22:21Z")

</div>

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:

```php
        cookiedecode($user);
    $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:

```php
“<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">  
</form>”

```

How can I make the site search work in flash?

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

Thanks  
[www.dhumketu.net](http://www.dhumketu.net)
