theswing
03-15-2007, 10:19 PM
Okay,
I'm trying to integrate phpbb into my site.
I created a page with an iframe to load phpbb, this page is located at http://www.domain.com/index.php?page=forum
On my main page, I have a link that looks like this:
<form name='frmForum' id='frmForum' action="forum/login.php" method='post' target="_blank">
<input type="hidden" name='login' value="Log in" />
<input type="hidden" name='username' value="{$smarty.session.UserName}" />
<input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
</form>
<a href="#" class="panellink" onclick="javascript:document.frmForum.submit(); return(false);" >FORUM</a>
The above code correctly opens phpbb in another browser window and logs me in, but does not open the page with the iframe.
I've tried this without luck:
<form name='frmForum' id='frmForum' action="forum/login.php" method='post' target="_self">
<input type="hidden" name='login' value="Log in" />
<input type="hidden" name='username' value="{$smarty.session.UserName}" />
<input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
</form>
<a href="http://www.domain.com/index.php?page=forum" class="panellink" onclick="javascript:document.frmForum.submit(); return(false);" >FORUM</a>
Any suggestions are welcome.
Thanks.
I'm trying to integrate phpbb into my site.
I created a page with an iframe to load phpbb, this page is located at http://www.domain.com/index.php?page=forum
On my main page, I have a link that looks like this:
<form name='frmForum' id='frmForum' action="forum/login.php" method='post' target="_blank">
<input type="hidden" name='login' value="Log in" />
<input type="hidden" name='username' value="{$smarty.session.UserName}" />
<input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
</form>
<a href="#" class="panellink" onclick="javascript:document.frmForum.submit(); return(false);" >FORUM</a>
The above code correctly opens phpbb in another browser window and logs me in, but does not open the page with the iframe.
I've tried this without luck:
<form name='frmForum' id='frmForum' action="forum/login.php" method='post' target="_self">
<input type="hidden" name='login' value="Log in" />
<input type="hidden" name='username' value="{$smarty.session.UserName}" />
<input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
</form>
<a href="http://www.domain.com/index.php?page=forum" class="panellink" onclick="javascript:document.frmForum.submit(); return(false);" >FORUM</a>
Any suggestions are welcome.
Thanks.