Need form tag in menu system

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
thundeerbirdie
Beginner
Beginner
Posts: 6
Joined: Fri Dec 22, 2006 5:31 pm

Need form tag in menu system

Post by thundeerbirdie »

Hi All,

I need to have a Menu tag as "chat" howver to get into the chat from the main page I need to use the below form tag.

Any one got a clue how I do it?


<form name='frmChat' id='frmChat' action="chat/flashchat_osdate.php" method='get' target="new">
<input type="hidden" name='username' value="{$smarty.session.UserName}" />
<input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
</form>
<a class="panellink" href="#" onclick="javascript:document.frmChat.submit(); return(false);">{lang mkey='chat'}</a>
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Something like this:

Code: Select all

aI("text=`<form name=frmChat id=frmChat action=chat/flashchat_osdate.php method=get target=new><input type=hidden name=username value='{$smarty.session.UserName}'><input type=hidden name=whatIneed value='{$smarty.session.whatIneed}'></form><a class=panellink href=# onclick='javascript:document.frmChat.submit();return(false);'>{lang mkey='chat'}</a>`;type=form");
You may need to ensure that the values are parsed correctly, this will mean changing the filename to .php and also maybe echoing the $smarty values
Post Reply