> >--- Mark Mckee <[EMAIL PROTECTED]> wrote:
> >>can anyone here help me with this little problem i cannot solve. i want 
> >>to open a link in an external window. the link is generated from 
> >>inputted information and called together to make the <a href>. how would 
> >>i get the following code to open the link in a new window rather than 
> >>itself?
> >>
> >>else $name = '<a href="http://'.$email_hp.'" 
> >>title="'.$hp_link.$email_hp.'">'.$name.'</a>';
> >>
> >>if you need more info than that, mail me off list and i will send the 
> >>entire section of code.
> >>
> >>thanks in advance
> >>
> >>Mark...
> >>http://www.soddengecko.com
> >
> >
> >One easy way is to use target="_blank" in your <a> tag.  It does not rely on 
> >Javascript and its
> >window.open() method.  This can be a good thing but be advised that you have 
> >no real control
> over
> >the window size and features when you use target like you can with JS.
> >
> >James
> >_____

--- Mark Mckee <[EMAIL PROTECTED]> wrote:

> thanks for the quick reply. i should have said, i tried that method and 
> recieved an unexpected T-String error, am i coding it wrong? i worte it 
> in like this
> 
> target="'blank'"

Two issues come to mind.  The T_STRING error is probably caused by the missing 
semicolon on the
first line.

> >>else $name = '<a href="http://'.$email_hp.'" 
> >>title="'.$hp_link.$email_hp.'">'.$name.'</a>';

When you use target it must be _blank as the value.  You don't need both single 
and double quotes.
 Either will do.

James



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to