I just want use ajax to change some variables in PHP code, I search so long time and dont get answers.
there is a a variable which called $args
, it's an array,
$arg=array(
'paged' => $paged,
'author'=> $author_ID,
'showposts'=> $author_posts_num,
'post_status'=>'publish'
)
and I want to click on a tag, change some variables or add some to $arg
,I know PHP is compiles on the server, but what I though is can I change the the variable above before the server compile php code,
I mean is this possible:
1:click the tag(maybe a button)
2: change variable above
3: the server compile PHP
4: hte HTML page reload
5: and we see the HTML page has changed
I just new to PHP AJAX, so a little confused here, thank you so much