View Full Version : php and javascript open in same window

01-18-2008, 01:41 PM
i have this code and all is working fine except i want it to open in the same window, not a new window,

$halves[1] .= "link=\"javascript:NewWindow=window.open('http://www.michaelshuttleworth.com/Payment_page.php?name=" . $fileid . ".jpg&album=" . $album . "','myWindow','width=300,height=730,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resiz able=yes');NewWindow.focus(); void(0);\"";

Can anyone help please, i know it is simple but i am going round i circles
Many thanks

01-18-2008, 01:47 PM
Please read Forum Rules (http://www.codingforums.com/rules.htm)

# 1.2) Do not crosspost- CodingForums.com is divided into various categories. When initiating a thread, always locate the most appropriate category, and post your question only ONCE, in that category. Do not post the same question in multiple categories.