Posted by Erwin Moller on 10/11/06 07:56
kirke wrote:
> In php, is there any way to submit button(in a form) makes window
> pop-up?
>
> -> INDEX.PHP :
>
> <form id="form1" name="form1" method="post" action="vehicle.php">
> <input name="submit" type="submit" id="submit" value="submit" />
> </form>
>
> This goes to only action page. (vehicle.php)
> I wanna pop-up the page(vehicle.php) and use data from index page.
> Also when i close the pop up page, I wanna use data in index what was
> selected in pop-up page(vehicle.php)
>
> Is it possible? Thx!
Hi,
This has little to do with PHP. It is just a HTML thing.
Just add a target to your form and it will pop-up in a new window.
(If you need to address that window from javascript, use the name you just
gave it in your form.)
<form action="vehicle.php" method="POST" target="myNewWindow">
Regards,
Erwin Moller
[Back to original message]
|