[HELP] HttpWebRequest and POST menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    visitor's Avatar Contributor
    Reputation
    174
    Join Date
    Mar 2008
    Posts
    307
    Thanks G/R
    16/15
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] HttpWebRequest and POST

    SOLVED

    fillerfiller
    Last edited by visitor; 01-02-2010 at 04:59 AM.
    Hey I just met you

    [HELP] HttpWebRequest and POST
  2. #2
    Seifer's Avatar Site Donator
    Reputation
    129
    Join Date
    Apr 2007
    Posts
    270
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For anyone else seeking to solve this issue, set up a PHP file looking something along the lines of this:

    PHP Code:
    if (isset($_POST))
    {
        
    $username $_GET['username']; // ?username=
        
    $password $_GET['password']; // &password= [hashed, of course.]
        
    $hardware_token $_GET['token']; // &token= for hardware login, etc.
        
        
    $result mysql_query("SELECT * FROM `accounts` WHERE username='".$username."' AND password='".$password."'");
        
    $row mysql_fetch_array($result);
        
        if (
    $row['username'] && $row['password'])
        {
            echo 
    "AUTH OK";
        }
        else
        {
            echo 
    "AUTH BAD";
        }

    This has been covered on my blog at C# login with PHP and MySQL Aevitas' Retreat, too.

Similar Threads

  1. Rep, threads, and posts reset o_O help!
    By Flail in forum Community Chat
    Replies: 1
    Last Post: 05-05-2008, 08:20 PM
All times are GMT -5. The time now is 11:01 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search