I am trying to write a program in visual basic that reads and writes data by sending it to a MySQL server via PHP files on the server. When I was experimenting with the program on my local testing server, it worked wonderfully, but once I changed the URL variable from localhost to the server to which I am connecting, many bad things started happening. Among the problems that arose is that when you click the button to send the data to the database via the PHP file, this happens.
Clicking the button only executes one line of code --
webConnection.DownloadString(New Uri(url & "sendMessage&message=" & username & ": " & txtMessageToSend.Text))
I would appreciate it if someone explained how to resolve this issue. As a side question, is it possible for background workers to initialize class-level variables?