open window with dynamic content

Posted by julio on Stack Overflow See other posts from Stack Overflow or by julio
Published on 2010-05-27T18:57:09Z Indexed on 2010/05/27 19:51 UTC
Read the original article Hit count: 153

Filed under:
|
|
|

Is it possible to open a window from PHP that has predefined content? It's obvious how you can open a window from a javascript link that frames an existing page, or just do a target=_blank from a regular a tag that references an existing page. But I am generating a bit of content, and want that content to be opened in a new link (or streamed to the viewer)--

something like (clearly psuedo code!):

$content = "Hello World. <br />Nice to meet you!";

<a href="#" target="_blank" content=$content>Open up!</a>

Is this possible? Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript