Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

php header to open in _blank

Posted on 2010-11-22
2
Medium Priority
?
423 Views
Last Modified: 2012-05-10
Hi

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 www.draft-it.co.nz

any help much appreciated.

Cheers
Paul index.php
0
Comment
Question by:kennedypd1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
V4nP3rs13 earned 2000 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="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td>
</tr>
<tr>
<td width="50%"><img width="1" height="10" alt="" src="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></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="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td>
</tr>
<tr>
<td width="50%" colspan="4"><img width="1" height="3" alt="" src="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td>
</tr>
<tr>
<td width="50%"><img width="1" height="1" alt="" src="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></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="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td>
</tr>
<tr><td colspan="4"><img width="1" height="4" alt="" src="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td></tr>
<tr><td colspan="4"><img width="1" height="8" alt="" src="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td></tr>
</tbody></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td colspan="4"><img width="1" height="1" alt="" src="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td></tr>
<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="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td>
</tr>
<tr><td colspan="4"><img width="1" height="1" alt="" src="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td></tr>
</tbody></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td colspan="2"><img width="8" height="1" alt="" src="http://draft-it.co.nz/intranet/graphics/rsdx_blue1/ui_misc/x_clear.gif"></td></tr>
<tr>
<td><a href="register.php?myaction=forgot" class="loglbutton1">Forgot your password?<br></a>
</td>
</tr>
</tbody></table>

</form>

Open in new window

0
 

Author Closing Comment

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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

604 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