How to open a new window?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   How to open a new window?
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
Question:

I have a block installed for Hordemail, but when i click login it opens in the same window, what code do i have to change/ad to open it in a new window.

Her is the code from the block:

$url = explode('|', $row['url']);
      if(!$url[0]) { 
      $address = "http://********.web-solution.nl";   
      } else {
      $address = "$url[0]"; 
      }
   if(!$url[1]) { 
      $server = "localhost";   
      } else {
      $server = "$url[1]"; 
      }
   if(!$url[2]) { 
      $port   = "143";   
      } else {
      $port   = "$url[2]"; 
      }
      if(!$url[3]) {
      $maildomain = "yourmaildomain.com";
      } else {
      $maildomain = "$url[3]"; 
      }
      if(!$url[4]) {
      $realm = "yourrealm.com";   
      } else {
      $realm = "$url[4]"; 
   }
$content = "<form action=\"$address/horde/imp/redirect.php\" method=\"post\" name=\"implogin\" />"
   ."<input type=\"hidden\" name=\"actionID\" value=\"105\" />"
   ."<input type=\"hidden\" name=\"url\" value=\"$address/horde/login.php\" />"
   ."<input type=\"hidden\" name=\"mailbox\" value=\"INBOX\" />"
   ."<input type=\"hidden\" name=\"server\" value=\"$server\" />"
   ."<input type=\"hidden\" name=\"port\" value=\"$port\" />"
   ."<input type=\"hidden\" name=\"namespace\" value=\"INBOX.\" />"
   ."<input type=\"hidden\" name=\"maildomain\" value=\"$maildomain\" />"
   ."<input type=\"hidden\" name=\"protocol\" value=\"imap/notls\" />"
   ."<input type=\"hidden\" name=\"realm\" value=\"$realm\" />"
   ."<input type=\"hidden\" name=\"folders\" value=\"\" />"
   ."<b>"._USERNAME."</b><br>"
   ."<input type=\"text\" tabindex=\"1\" name=\"imapuser\" value=\"\" class=\"pn-normal\" /><br>"
   ."<b>"._PASSWORD."</b><br>"
   ."<input type=\"password\" tabindex=\"2\" name=\"pass\" class=\"pn-normal\" /><br>"
   ."<input type=\"submit\" class=\"button\" name=\"button\" tabindex=\"3\" value=\"Log in\" />"
   ."</form>";



Back to top Reply with quote
#2   re: How to open a new window?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
Try adding target="_blank" to your form tag. Like this:

$content = "<form action=\"$address/horde/imp/redirect.php\" method=\"post\" name=\"implogin\" target=\"_blank\" />"


Kelly


Back to top Reply with quote
#3   re: How to open a new window?
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
THNX, but it isnt working icon_mrgreen.gif



Back to top Reply with quote
#4   re: How to open a new window?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
icon_redface.gif Sorry. Was a quick stab at it. I'll see if I can scrounge up the correct answer.

Kelly



Back to top Reply with quote
#5   re: How to open a new window?
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
Try this:

$content = "<form target=\"_blank\" action=\"$address/horde/imp/redirect.php\" method=\"post\" name=\"implogin\"  />"


That's just moving the target attribute to the front, but it might do the trick. If it doesn't work, I'm not sure what to tell you. I use the target attribute in several forms on my websites and they work.

*Crosses fingers*

Kelly


Back to top Reply with quote
#6   
websolution
CZ Active Member
websolution has been a member for over 20 year's 20 Year Member
netherlands.gif
Occupation: security
Age: 47
Gender: Male
Website:
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 111
Points: 2,993
   
It works!!! new_shocked.gif LOL

THNX Kelly




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum