|
-
Nov 19th, 2007, 05:52 PM
#1
Thread Starter
New Member
VB Send Text to PHP help
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.
-
Nov 19th, 2007, 06:38 PM
#2
Re: VB Send Text to PHP help
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
My usual boring signature: Something
-
Nov 19th, 2007, 07:37 PM
#3
Thread Starter
New Member
Re: VB Send Text to PHP help
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
-
Nov 19th, 2007, 08:09 PM
#4
Re: VB Send Text to PHP help
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.
My usual boring signature: Something
-
Nov 19th, 2007, 09:09 PM
#5
Thread Starter
New Member
Re: VB Send Text to PHP help
k thats awsome thanks and its cesored cause they dont want spam or w/e
-
Nov 19th, 2007, 09:11 PM
#6
Thread Starter
New Member
Re: VB Send Text to PHP help
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
Last edited by johndoe; Nov 19th, 2007 at 09:17 PM.
-
Nov 19th, 2007, 10:34 PM
#7
Re: VB Send Text to PHP help
Well i dont code in VB, so i will have a mod move this thread, and some VB people will help ya out
My usual boring signature: Something
-
Nov 19th, 2007, 11:17 PM
#8
Thread Starter
New Member
Re: VB Send Text to PHP help
-
Nov 20th, 2007, 12:05 AM
#9
Lively Member
Re: VB Send Text to PHP help
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.
-
Nov 20th, 2007, 12:28 AM
#10
Re: VB Send Text to PHP help
Use Winsock as specified in post #2.
Use GET for idempotent requests; POST for non-idempotent (data changing).
-
Nov 20th, 2007, 12:43 AM
#11
Lively Member
Re: VB Send Text to PHP help
Thank you, that actually clears it up quite well.. I guess I kind of skipped over that post ..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|