Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form button to run php script in pop up window

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
GB
I have a form which passes vars to a php script. This is working fine with a form action="/scripts/runme.php" method="post" etc.

What I want to do though, is to have the results displayed in a pop up window.

I tried a javascript pop up function which did open up a pop up when the button was pressed but the form vars are not being passed to the script.

is it possible to run a php script in a pop up window from a form?

 
I would think so.

Could you pass the variables via the url?

Like:

thread215-330289 the:
SQID=330289
SPID=215

Just write a javascript function that passes the variables that way. Seems like it would work to me but I don't really program in php much. ====================================
I love people. They taste just like
chicken!
 
Why don't you just add target=&quot;_blank&quot; to <form>?

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
target=&quot;_blank&quot; works, but then I have no control over the size or toolbars!

Cheers.

 
as for passing the variables on the url, well there's too many off them.

I guess I need to put the form in the .php file and run from within itself with the javapopup if you know what I mean. Not the ideal solution as I wanted the form to be on a html page and then run the php results in a popup.



 
Why don't you just have the php page that the form gets submitted to open the new window and display the results?

Rick It's a pleasure to know that I've helped you. If I have,
please click the link below to let me know. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top