Hi, Firstly i dont know if the below code is php or html, so sorry if im wasting your time, but i hope someone can help. The below code is for a login form, but at the moment, no matter whether the login is successful or fails it displays the results in its "_self" frame, but i need it so that if it is a good login it displays the good login page in the current frame, but if its a bad login to display in the frame called "mainFrame". Is this possible? if so can someone help?
Thanks in advance,
<form action="<?php echo $phpbb_root_path; ?>login.php" method="post" target="_self">
Username:<br />
<input type="text" class="post" name="username" size="20" maxlength="40" value="" /><br />
Password:<br />
<input type="password" class="post" name="password" size="20" maxlength="25" /><br />
<input type="checkbox" name="autologin" checked="checked" />
auto login<span class="gensmall">
<input type="hidden" class="mainoption" name="redirect" target="_self" value="../Forum/mods/phpbb_fetch_all/examples/login.php" />
</span><br />
<div align="center"><input type="submit" class="mainoption" name="login" value="Login" /><br />
<a href="<?php echo $phpbb_root_path; ?>profile.php?mode=sendpassword" target="mainFrame" >I forgot my password</a></div>
</form>