Jump to content

HELP WITH ECHO


manoj_f_g2002

Recommended Posts

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 .

Link to comment
https://forums.phpfreaks.com/topic/112724-help-with-echo/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/112724-help-with-echo/#findComment-578892
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/112724-help-with-echo/#findComment-579012
Share on other sites

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.