Hi,
I have a little(?) prob with a newsletter-functionality:
- I have an index.html with a form. If the form is filled and submitted, the data is posted to a separate php-file in which the data is put into a mysql-database. I implemented a javascript-function which resets the form on index.html and opens a new popup (thankyou...blabla).
Problem:
I wrote following form tag:
<form action="test.php" method="post" onSubmit="resetPopup()" name="newsletter" id="newsletter" target="newsletter">
If I submit the inserts I call a following function:
...blabla..
if(check == true)
self.document.newsletter.submit();
document.forms.newsletter.reset();
window.open("","newsletter","height=360,width=280,resizable=no,scrollbars=no,status=no,resizable=no,menubar=no");
Here now my trouble starts: The script opens the test.php as new a new browser window - NOT as a normal popup - with all the menubars and so on and IGNORS my parameters for the bars. Also the height is wrong because of the bars.
HOW can I open a regular popup, without opening the test.php in a regular browserwindow AND without reloading the index.html?
Can you help me?
Thanks
Alexander