Results 1 to 3 of 3

Thread: Using Post Twice in 1 Script

  1. #1
    Join Date
    Jun 2014

    Question Using Post Twice in 1 Script

    Hello there Javascripters,

    I am making a little website just for myself, not going to put it online. But anyways i want to make it completely without refresh. So i'm making the Register and Login system now. And i post the variables to a php script which does all the stuff and then send back the result.

    But the problem now is that only the Login script works. There is NOTHING wrong with the Register script. The problem is that the post method only works once in a script. If i comment the login post script the Register post script works fine. So how can i use both? This is the post method i use:

    $.post("RegisterPost.php And LoginPost.php", {Username: Username, Password: Password}, function(response)
    if(response == "Registered Or Logged In")
    // do something
    Thanks in advance,

  2. #2
    Join Date
    Jun 2014
    EDIT: I fixed it already, the problem was that i didnt handle some stuff in the php code... XD

  3. #3
    Join Date
    Jun 2014
    How you are using twin post in 1 script?

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