Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

popup

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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
border20
New php-forum User
New php-forum User
 
Posts: 32
Joined: Tue Jan 28, 2003 10:19 am
Location: Québec

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.
Elena Mitovska
New php-forum User
New php-forum User
 
Posts: 13
Joined: Tue Nov 12, 2002 12:11 pm
Location: Ukraine


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.