views:

118

answers:

1

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!

A: 
Pointy
thanks pointy!I ended up passing the data as a post and then just parsing the post data, but I'll give your method a shot, it looks much cleaner.Thanks!
julio