Modernvox Posted December 18, 2009 Share Posted December 18, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/185640-display-form-values-in-a-popup-window-what-gives/ Share on other sites More sharing options...
micah1701 Posted December 21, 2009 Share Posted December 21, 2009 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) Quote Link to comment https://forums.phpfreaks.com/topic/185640-display-form-values-in-a-popup-window-what-gives/#findComment-981774 Share on other sites More sharing options...
akitchin Posted December 21, 2009 Share Posted December 21, 2009 it's probably because the target "_popup" doesn't exist. try changing the target to "_blank", but knowing what the openPopup() function looks like would be nice as well. Quote Link to comment https://forums.phpfreaks.com/topic/185640-display-form-values-in-a-popup-window-what-gives/#findComment-981797 Share on other sites More sharing options...
Modernvox Posted December 22, 2009 Author Share Posted December 22, 2009 Figured it out guys. Problem was I never refreshed my browser before previewing the changes :-) Thanks guys! Quote Link to comment https://forums.phpfreaks.com/topic/185640-display-form-values-in-a-popup-window-what-gives/#findComment-982684 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.