Jump to content

Pass variables to PHP


Recommended Posts

Hello, I trying to pass variables from autoit to PHP. I`m pretty much lost thought. That`s what I currently have:

autoit

#include <INet.au3>

$INPUT_NAME = "popo"

$INPUT_PASSWORD = "007"

_InetGetSource("http://mysite.com/PHPTEST/dbcheckTESTE.php?username=" & GuiCtrlRead($INPUT_NAME) & "&password=" & GuiCtrlRead($INPUT_PASSWORD))

autoit

this is the php:

$username = $_POST['username'];

$password = $_POST['password'];

$result = mysql_query("INSERT INTO testeuser (username, pw) VALUES('$username', '$password' )") or die('Query failed: ' . mysql_error());

Well, the variables are not passing so nothing is being added to the DB

can someone please help?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...