php - Popuplate variable using AJAX -



php - Popuplate variable using AJAX -

say have page...

<?php $variable1 = ''; echo "variable 1 = " . $variable1; ajax insert funciton ?>

when page loads thre userw sick see "variable 1 =" variable undefined. if ajax function insert db gave variable1 value, right in thinking user still see "variable 1 =" until reloads page?

im trying understand ajax sorry if bit confusing/amateur question

thanks in advance a

an ajax phone call alter page if write code in page update page after results of ajax call. if don't update page yourself, right page not alter until refresh.

you can think of ajax phone call remote procedure phone call server , nil more that. affects contents of page if alter page yourself.

php javascript ajax

Comments

Popular posts from this blog

ios - Fragment Shader GLSL for texture, color and texture/color -

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -