Jump to content
Sign in to follow this  
hancham

Pass variables to PHP

Recommended Posts

hancham

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?

Share this post


Link to post
Share on other sites
hannes08

hancham,

like Melba already said in one of your previous posts:

You already have a thread going about this. Please stick to just the one! :mellow:


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites
hancham

ow, sorry, actually the other post is about the reverse thing.. but if you guys think I should maintain just 1 topic so no problem. :mellow:

Share this post


Link to post
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
Sign in to follow this  

×