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
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
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?

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.