HTML calling POST action on embedded php -


i have html page displaying phpbb3 forum through iframe using following:

      <iframe name="inlineframe" src="http://www.website.net/forums/index.php" frameborder="0" scrolling="auto" width="100%" height="1500" marginwidth="5" marginheight="5" ></iframe>. 

i doing in order display html coded menu bar on top of forum.

on html page (the home page), have container input fields allowing log in directly forums via following code:

      <form action="http://www.website.net/login.php?mode=login" method="post">         <label for="username">username</label><input type="text" name="username" required>         <label for="password">password</label><input type="password" name="password" required>         <input type="submit" name="login" value="login" class="loginbtn"/><a href="http://www.website.net/register.php">register</a>       </form> 

therefore, if user types login info box , hits submit, taken directly home page forums , automatically sign in.

it works fine when link submit button directly phpbb forums (does not have menu bar) not when embedded (with menu bar).

if used embedded php link (www.website.net/register.php), browser takes me login page without inputting of fields submitted.

the best thing modify header template of forum's theme , add menu bar, example: http://openfantasy.org/forum/

if want avoid doing whatever reason, suggest should add redirect in phpbb page want post-login.

look @ lines 76-81 in root\ucp.php (phpbb 3.0.11)

if ($user->data['is_registered']) {     redirect(append_sid("{$phpbb_root_path}index.$phpex")); }  login_box(request_var('redirect', "index.$phpex")); 

change url of page iframe, , should good.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -