php header to open in _blank

Posted on 2010-11-22
Last Modified: 2012-05-10

I am sure there is a simple answer to this but don't have enough knowledge to work it out.

I have setup a login page that works in an iframe. When someone successfully logs in I want the page to open in it's own window.
I have attached the code for the page in the iframe and if you want to look at where it is working the address is

any help much appreciated.

Paul index.php
Question by:kennedypd1

Accepted Solution

V4nP3rs13 earned 500 total points
ID: 34195290
Look, PHP is server side programming language. You MUST use javascript (html) to do this:

<form method="post" action="index.php" target="_blank">

<table width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td colspan="4"><img width="1" height="14" alt="" src=""></td>
<td width="50%"><img width="1" height="10" alt="" src=""></td>
<td class="logtxt1"><label for="loginname">Username:&nbsp;</label></td>
<td><input type="text" maxlength="255" size="24" name="loginname" class="finput1" id="loginname"></td>
<td width="50%"><img width="1" height="1" alt="" src=""></td>
<td width="50%" colspan="4"><img width="1" height="3" alt="" src=""></td>
<td width="50%"><img width="1" height="1" alt="" src=""></td>
<td class="logtxt1"><label for="password">Password:&nbsp;</label></td>
<td><input type="password" maxlength="255" size="24" name="password" class="finput1" id="password"></td>
<td width="50%"><img width="1" height="1" alt="" src=""></td>
<tr><td colspan="4"><img width="1" height="4" alt="" src=""></td></tr>
<tr><td colspan="4"><img width="1" height="8" alt="" src=""></td></tr>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td colspan="4"><img width="1" height="1" alt="" src=""></td></tr>
<td align="left">&nbsp;</td><td align="left">&nbsp;</td><td align="right"><h3 target="_blank" base=""><input type="submit" onmouseout="highlightButton('fbuttonup1')" onmouseover="highlightButton('fbuttondown1')" title="Log in to Owl Intranet" alt="Log in to Owl Intranet" value="Login" class="fbuttonup1"></h3></td>
<td><img width="1" height="1" alt="" src=""></td>
<tr><td colspan="4"><img width="1" height="1" alt="" src=""></td></tr>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td colspan="2"><img width="8" height="1" alt="" src=""></td></tr>
<td><a href="register.php?myaction=forgot" class="loglbutton1">Forgot your password?<br></a>


Open in new window


Author Closing Comment

ID: 34200052
Fantastic thanks for the quick response. Works perfect.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now