www.webdeveloper.com
Results 1 to 5 of 5

Thread: Help using AJAX/Javascript to change PHP variable.

Threaded View

  1. #1
    Join Date
    Aug 2012
    Location
    Milwaukee
    Posts
    15

    Help using AJAX/Javascript to change PHP variable.

    Been stuck on this for quite a bit... main problem is I'm very much a rookie when it comes to PHP and server side languages.

    But when this javascript function is completed:


    Code:
    request.done(function(msg)
    	{
    		if (msg.result === 0)
    		{
    			alert("The credit card was charged successfully!");
    		}

    I would like this PHP variable, which is in a different file, to change.

    Code:
    <?php if($row['membership_id'] == 0) :?>
    Any help would be greatly appreciated.
    Last edited by L3O; 02-23-2013 at 12:32 PM. Reason: accuracy

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles