Hello every1,

i have created a form to generate a newsletter (in php/AJAX). The dynamic form contains two buttons, one to create the form, and the other one to preview it.

The problem is that the submit form goes to one link only. To solve this problem, i have inserted a hidden text field with a value of 0 indicating create newsletter, and 1 (when view is clicked, the value of the hidden text field changes to 1). The page where the form is being submitted then decides whether to preview or to create the newsletter and save on the database.

Now i have a big problem. The View newsletter button should rather preview on a new window. I dont know how to do that. I can't use GET because there are too many arguments to pass.

Anyone has a brillant idea, or can give some tips how to do that??