I was wondering.
In one page I have a button and a $var which contains "test". If you click the button it opens another window and posts the $var in that window.
You can easily do this with secondpage.php?var=test (through GET) but I don't want to do that. I want to actually post something in the second page in a new window.
html/javascript/php post problem
Moderator: General Moderators
There's target attribute of the form tag specifically for that purpose:
htmlhelp.com wrote: The TARGET attribute is used with frames to specify in which frame the form response should be rendered. If no frame with such a name exists, the response is rendered in a new window unless overridden by the user. Special frame names begin with an underscore:
- _blank renders the response in a new, unnamed window
- _self renders the response in the current frame (useful for overriding a BASE TARGET)
- _parent renders the response in the immediate FRAMESET parent
- _top renders the response in the full, unframed window