Results 1 to 11 of 11

Thread: VB Send Text to PHP help

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    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.

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    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

  4. #4
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    Re: VB Send Text to PHP help

    k thats awsome thanks and its cesored cause they dont want spam or w/e

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    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.

  7. #7
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    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

  8. #8

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    5

    Re: VB Send Text to PHP help

    thank you very much

  9. #9
    Lively Member
    Join Date
    Nov 2007
    Location
    Rochester, NY
    Posts
    111

    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:
    1. Dim p As String
    2. Dim u As String
    3. u = Text3.Text
    4. p = Text2.Text
    5.  
    6.     SendKeys "{tab}"
    7.     SendKeys u
    8.     SendKeys "{tab}"
    9.     SendKeys p
    10.     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.

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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).

  11. #11
    Lively Member
    Join Date
    Nov 2007
    Location
    Rochester, NY
    Posts
    111

    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
  •  



Click Here to Expand Forum to Full Width