| | |
open link in new window - PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2008
Posts: 1
Reputation:
Solved Threads: 0
I would like to open the following link in a new window , can you pls. help me -
thanks in advanced
php Syntax (Toggle Plain Text)
<?php $userfile= file_get_contents("out.txt"); $users = explode("\n",$userfile); foreach ($users as $user) { list($name, $cor) = explode(" ", $user); echo "<a href=\"http://db.yeastgenome.org/cgi-bin/locus.pl?locus=".$name."\">$name </a>"."<br/>"; } ?>
thanks in advanced
Last edited by peter_budo; Nov 7th, 2008 at 4:02 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Very simple, you can use either
<a href="..." target="_BLANK">...</a>
or use javascript function window.open() to open a new window having the link you specified
<a href="..." target="_BLANK">...</a>
or use javascript function window.open() to open a new window having the link you specified
Stuck in the middle of Java/PHP/Ajax development?
For free help on any technology and free articles visit http://www.techcubetalk.com
For free help on any technology and free articles visit http://www.techcubetalk.com
or try this:
PHP Syntax (Toggle Plain Text)
<a href="javascript:;" onClick="window.open('yourpage.php','no','scrollbars=yes,width=550,height=400')" >Open</a>
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
![]() |
Similar Threads
- Avoiding the same php page from opening in multiple windows (PHP)
- PHP Navigation help please (PHP)
- Open In New Window Php (PHP)
- open links in parent window (from child)? (JavaScript / DHTML / AJAX)
- Anyone good with Favlets? window links? (HTML and CSS)
- PHP Session Variables (PHP)
- New Window Entitled 'Common' When Booting up (Viruses, Spyware and other Nasties)
- Can't open anything in new window (Viruses, Spyware and other Nasties)
- PHP Help PHPBB or VB (Web Development Job Offers)
- pegged CPU, possible peper? (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: help in sending php array to mysql table
- Next Thread: what's wrong with my process.php?
| Thread Tools | Search this Thread |
301 access apache api array beginner binary broken cakephp checkbox class clean cms code compression countingeverycharactersfromastring crack cron curl database date decode directory display dissertation dropdown dynamic echo email error fairness file files folder form forms function functions google href htaccess html httppost image include insert integration ip javascript joomla limit link login mail match md5 menu methods mlm multiple mysql newsletters oop pageing pagerank paypal pdf php problem protocol query radio random recursion remote script search secure server sessions simple sms soap source space spam sql syntax system table tutorial update upload url validator variable video votedown web youtube






