Jump to content

Display Form Values in a PopUp Window. What Gives??


Modernvox

Recommended Posts

Guess it's been a while new look eh?

 

Anyhow, I have been trying and trying and trying some more to get my form to display the users selections/values  in a small popup window, but every time.. the window displays on a full screen.

 

I used many code snippets to no avail.

 

The most recent I used was the following:

 

<form name="form" method="post" action="quote_results.php" target="_popup" onsubmit="return openPopup()"> 

I also have the function set up in the php file as well. Don't matter doesn't work anyhow, right?

 

I have spent some time searching for a solution, but with no JS skills whatsoever I am frustrated to say the least. It looks simple on paper, so what gives?

 

P.S. I have used height and size attributes as well with no luck.

 

Thanks in Advance!

what does your javascript look like?  eg,

 

function openPopup(){

//whats here ???

}

 

right now, your onSubmit is calling that function but it must be failing so instead, the form is just being submited to the action in the HTML and opening in a new window (because you have the target set to do so)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.