Preview in a new window

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,
I have a small question... I have a simple form where user can enter data.
I have two button. One to submit and add the data and the other one to
preview the data...is there a simple way to do it...

=====================================================
i tried smthing like this... but doesnt seem to work:

<?php
function newWindow() {
window.open("bbbb.php, "", "width=400,height=500,top=50,left=280,
resizable,toolbar,scrollbars,menubar,");
}
?>

<form action="aaa.php" method="post" >
....
<input type="submit" name="Preview" value="Preview" onclick="newWindow();" />
<input type="submit" name="Add" value="Add" />
</form>
======================================================
any suggestion will be appreciated

best
_sabs


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux