Page 1 of 1

html/javascript/php post problem

Posted: Mon Oct 03, 2005 11:52 am
by Mordachai
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.

Posted: Mon Oct 03, 2005 1:14 pm
by kireol
try post with a hidden variable.

Posted: Mon Oct 03, 2005 1:21 pm
by Weirdan
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

Posted: Mon Oct 03, 2005 3:09 pm
by Mordachai
I didnt know that there was a target attribute for the font tag.

Many thanks.