popup

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

border20
New php-forum User
New php-forum User
Posts: 32
Joined: Tue Jan 28, 2003 10:19 am
Location: Québec
Contact:

popup

Postby border20 » Tue Feb 18, 2003 1:20 pm

I have a form with a submit button, when the submit button is clicked, i want another window to appear as a popup. And i need php variables to be passed to this popup.

How do i do this ??
anyone have any ideas ?

thx

Elena Mitovska
New php-forum User
New php-forum User
Posts: 13
Joined: Tue Nov 12, 2002 12:11 pm
Location: Ukraine
Contact:

Postby Elena Mitovska » Wed Feb 19, 2003 3:25 am

You just need to specify "target" attribute of form as "blank"
for example

<form action="test.php" method="post" target="_blank">
<input type=text name=text1>
<input type=submit>
</form>

this script will submit the form to file test.phpand opens this file in another window.


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest