[SOLVED] It still shows as GET while I use POST

0 favourites
From the Asset Store
We present to you “Post Apocalyptic Trailer” – our newest hard hitting, bass rumbling designed movie trailer collection.
  • Could you post a capx, UberDark, with your ajax request or a screenie of the events involving the ajax action.

    In my network tab on the Chrome console, my requests show up as POST methods.

  • Fireche The username, password and database names will of course be changed once i figure it out hahaha What is PDO however?

    lennaert

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Fireche The username, password and database names will of course be changed once i figure it out hahaha <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> And there will not be anything worthwhile on there anyway. It is going to be a map for a volunteer group of people that pick litter. Interesting for hackers aye <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> What is PDO however?

    lennaert

    Nowadays you should use PDO instead of mysqli or mysql: http://php.net/manual/en/mysqlinfo.api.choosing.php It's more safe and it's the future <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz"> Also never put SQL-Statements into your query. You will get hacked easily <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    You wrote in MYSQLI:

    $stmt = $con -> prepare("SELECT id FROM members where username='$username' and password='$password'")

    In PDO:

    $stmt = $con -> prepare("SELECT id FROM members where username = :username and password = :password")

  • Fireche Cheers! Appreciate it

  • The POST should not be showing up as a GET, are you sure you do not have a stray GET request somewhere ?

    I would not mind taking a look at the capx and testing it seeing if I get the same results. (If you like you can PM me a file)

  • After a lot of deduction together with lennaert we conclude Ajax seems to be misfiring the POST to url as GET..

    Not sure why yet.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)