| | |
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 |
apache api array beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external fcc file files folder form forms forum freelancing function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert ip javascript joomla limit link login mail malfunction menu method mlm mod_rewrite multiple mysql neutrality oop pageing pagerank paypal pdf php phpmysql play problem query question radio random recursion remote root script search select server sessions sms soap source space sql support! syntax system table template tutorial update upload url validator variable video web youtube






