1

I have to call below function call to my php file...if any one have idea please help....

  function update_hidden_input(saved_tokens, hidden_input) 
{
    var token_values = $.map(saved_tokens, function (el) 
{
            //alert(el[settings.tokenValue]);
            return el[settings.tokenValue];
 });

    hidden_input.val(token_values.join(settings.tokenDelimiter));
         //var frienduid =(token_values.join(settings.tokenDelimiter));
        //alert(frienduid);
    }
3
  • 1
    Please search before asking, this has been asked and answered many times. See stackoverflow.com/questions/14688946/… Commented Mar 2, 2013 at 10:32
  • @ChristophGrimmer-Dietrich i don't know how it call because it gives me call to undefined function error..... Commented Mar 2, 2013 at 11:59
  • @ChristophGrimmer-Dietrich i include the script where this function was reside.. Commented Mar 2, 2013 at 12:00

1 Answer 1

0

You can done with it by using jQuery.ajax() or jQuery.post() function to send data to the PHP. but it is not secured. Because JavaScript is open for all browser. Bad guys can send unexpected data and take chances to harm your app / web. Anyway it is your choice.

Check facebook server-side-login, it can help you more.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.