Results 1 to 5 of 5

Thread: How to make my form interact/talk to php page?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Arrow How to make my form interact/talk to php page?

    Hi all i wonder if i can some one make my vb6 application to talk to a php page and send the php page some mysql statment that it executes in remote server. I be happy if i get some help here.Thanks

  2. #2
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: How to make my form interact/talk to php page?

    Well that would first require you to connect with your server first. I would suggest winsock. Then, you must send an HTTP Request, most likely a POST, with some data for the PHP script to use. I would suggest having the application send out different commands to the PHP script and have the script act depending on those commands. Something like:

    PHP Code:
    switch($_POST['action'])
    {
        case 
    "Update":
            
    //Update the database
            
    break;
        case 
    "Delete"
            
    //Delete something from the DB
            
    break;

    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Arrow Re: How to make my form interact/talk to php page?

    Thank u for u reply. Could u tell me then how i send my data to php from my forexampe user input ? i can not just send a command to ask php to do update, delete,.. i need to send my form input data to php and i do not how how i can achive that from within vb6. So i be happy if some one tell me how ?Thanks

  4. #4
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: How to make my form interact/talk to php page?

    I would suggest taking a look at this:

    http://www.vbforums.com/showthread.php?t=387897
    Age - 15 ::: Level - Advanced
    If you find my post useful please ::Rate It::


  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: How to make my form interact/talk to php page?

    Quote Originally Posted by Inuyasha1782
    I would suggest taking a look at this:

    http://www.vbforums.com/showthread.php?t=387897
    Thank u for sharing this code . I looked at it but i do now how to use it!could u show me a code that uses this modeul to send data to php page and that php insert the data passed to mysql database. Thanks

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