Ajax in php

Discussion in 'PHP' started by inetsolution, Aug 11, 2008.

  1. #1
    what is the use of ajax in php?
     
    inetsolution, Aug 11, 2008 IP
  2. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Ajax means Async JS and XML

    It will take the user input from user end and process and send back with page load .
     
    priyakochin, Aug 11, 2008 IP
  3. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #3
    "Ajax is the skin, php is the skeleton."

    Well basically, Ajax is the middle-man that interacts with the browser and the server such as php. The result is dynamic pages without the need to load a completely new page for inputs and outputs.
     
    Kaizoku, Aug 11, 2008 IP
  4. XT Gohan

    XT Gohan Greenhorn

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    Here is 3-step tutorial I found on AJAX and PHP: Ajax/PHP Tutorial. It focuses on the basics of AJAX and then includes a small amount of PHP, so it's pretty simple and not anything outrageously difficult.
     
    XT Gohan, Aug 11, 2008 IP
  5. fliply

    fliply Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Use javascript as normal but within a PHP page. If you want to grab information from the PHP script again, you will have to reload the page (or an element of the page) as PHP is server side and Javascript is client side.

    Have worked with PHP and Javascript to AJAX successfully in the past.

    There's lots of examples out there on web
     
    fliply, Aug 11, 2008 IP
  6. Nxiel

    Nxiel Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    AJAX is used for front end development while PHP is the backend. So bascially AJAX is used the display something on your screen.
     
    Nxiel, Aug 11, 2008 IP
  7. koolman

    koolman Peon

    Messages:
    76
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    AJAX transports data silently from client to PHP at server to be processed.
     
    koolman, Aug 12, 2008 IP