manoj_f_g2002 Posted July 1, 2008 Share Posted July 1, 2008 I got one form to mysql submit script and its working fine. When the form is submitted, it displays the confirmation message in the same window. i added taget="_blank", and now it shows in new window. What i need is to have a pop up window or a div to showup on success. this is the code in my php file : if($result = mysql_query($sql ,$db)) { echo 'Thanks, database updated'; } I am very new to to php, can please anyone help me to do this . Quote Link to comment https://forums.phpfreaks.com/topic/112724-help-with-echo/ Share on other sites More sharing options...
NeoMarine Posted July 1, 2008 Share Posted July 1, 2008 To do it live, you'll need to implement either an "AJAX" or "Javascript" solution. If you don't want to use those languages, then you can have a submit button which loads the next page and executes a pop-up window on load. Quote Link to comment https://forums.phpfreaks.com/topic/112724-help-with-echo/#findComment-578891 Share on other sites More sharing options...
GingerRobot Posted July 1, 2008 Share Posted July 1, 2008 To do it live, you'll need to implement either an "AJAX" or "Javascript" solution. If you don't want to use those languages, then you can have a submit button which loads the next page and executes a pop-up window on load. I wish people would stop staying that AJAX is a language. It's not. It's javascript. Quote Link to comment https://forums.phpfreaks.com/topic/112724-help-with-echo/#findComment-578892 Share on other sites More sharing options...
manoj_f_g2002 Posted July 1, 2008 Author Share Posted July 1, 2008 To do it live, you'll need to implement either an "AJAX" or "Javascript" solution. If you don't want to use those languages, then you can have a submit button which loads the next page and executes a pop-up window on load. can u just gimme the javascript code? Quote Link to comment https://forums.phpfreaks.com/topic/112724-help-with-echo/#findComment-578895 Share on other sites More sharing options...
dannyb785 Posted July 1, 2008 Share Posted July 1, 2008 I wish people would stop staying that AJAX is a language. It's not. It's javascript. who really cares? we know what they mean Quote Link to comment https://forums.phpfreaks.com/topic/112724-help-with-echo/#findComment-578978 Share on other sites More sharing options...
prime Posted July 1, 2008 Share Posted July 1, 2008 well the only thing that's new in Ajax is the xmlhttprequest, without that it's not ajax, so if you want to call that one thing a whole language, I guess who cares Quote Link to comment https://forums.phpfreaks.com/topic/112724-help-with-echo/#findComment-579010 Share on other sites More sharing options...
br0ken Posted July 1, 2008 Share Posted July 1, 2008 To do it live, you'll need to implement either an "AJAX" or "Javascript" solution. If you don't want to use those languages, then you can have a submit button which loads the next page and executes a pop-up window on load. can u just gimme the javascript code? If this was a Javascript Forum... perhaps? Probably not though because then you would never learn my friend! You could easily search for 'Javascript Popup' on Google and get all the information you need. A little tip, you're looking for the window.open(url, title, params) function. Quote Link to comment https://forums.phpfreaks.com/topic/112724-help-with-echo/#findComment-579012 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.