PHP CMS + Ajax ?? DIV Response -


this first post .

i have login system working fine trying improve .

just example:

password update page

  1. user inputs password
  2. the php code runs on same page request
  3. the page reloads alert

i hate alerts , suggestions or on how recall successfull result displaying page again simple div on top display "successful update" or errors in case occurs if can link me tutorials appreciated.

regards

there few ways can it.

first, can use login script assign session or pass variable in query string result, on main page this:

<? if($messsage == 'success') { // show message } else { // show error message } ?> 

second, can ajax calls, allow same thing without refreshing page (however logins it's pretty important refresh page once you've set sessions, , changed content structure [hidden login form etc]). jquery has ajax built in , makes easy use.

finally, there endless questions how deal ajax responses , problems arise not using correctly etc on stack, have search.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -