www.webdeveloper.com
Results 1 to 2 of 2

Thread: POST a value by javascript to php

  1. #1
    Join Date
    Apr 2005
    Posts
    210

    Red face POST a value by javascript to php

    I saw code about POST a value by javascript to php, but can not remember what it was.

    key of the code is a javascript function, which looks like:
    post_to_php(value, 'receiver.php');

    As I said, I can't remember signature of the function, and can't google it now.
    Please show me the function if you know.

    Thanks.

    BTW: nothing about a form.

    .

  2. #2
    Join Date
    May 2012
    Posts
    1
    personally I use Ajax(jquery) to read php files and showe them on div "container",
    this is ajax function:
    function loadData(page){
    loading_show();
    $.ajax
    ({
    type: "POST",
    url: "liste_evenements.php",
    data: "page="+page,
    success: function(msg)
    {
    $("#container").ajaxComplete(function(event, request, settings)
    {
    loading_hide();
    $("#container").html(msg);
    });
    }
    });

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