Ok, what I want to do is I want to make a program that will let you enter text in a Visual Basics program and send with a command button to a PHP address.
Printable View
Ok, what I want to do is I want to make a program that will let you enter text in a Visual Basics program and send with a command button to a PHP address.
well this would be visual basic code, not php code.
What you are going to want to use is the Inet contol or winsock control. Here is a winsock example
Yeah but this can be done so much more easyer look this is what I want look at this guys PHP he has a chatroom in his vb program and it sends the text to a php.
http://****************jpsources/cphq/cphqlog.php
umm i think there is a cuss word in there so it is censored...
But anyway, it is most likely a PHP post or get request that is being sent, and you will need to use the winsock control.
What you want to do involves no php code whatsoever.
k thats awsome thanks and its cesored cause they dont want spam or w/e
k so is there some coding so i dont have to sort through that other program and just give me some simple coding so I can send text to my php
Well i dont code in VB, so i will have a mod move this thread, and some VB people will help ya out
thank you very much
I'm actually looking into this as well, as I need a way to check a mysql database for registered names. As of now, the only way I know of is using the 'SendKey' function. Here's an example:
vb Code:
Dim p As String Dim u As String u = Text3.Text p = Text2.Text SendKeys "{tab}" SendKeys u SendKeys "{tab}" SendKeys p SendKeys "{enter}"
This is of course using a webbrowser control on the form. This is however unsecure. So if there's another way, I'd also be greatly appreciative for it.
Use Winsock as specified in post #2.
Use GET for idempotent requests; POST for non-idempotent (data changing).
Thank you, that actually clears it up quite well.. I guess I kind of skipped over that post :blush:..