Results 1 to 6 of 6

Thread: Help me in this work

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2008
    Location
    India
    Posts
    37

    Help me in this work

    Hello!

    Now i made the process to pass the value of 'two text box' values form VB form to PHP web page. I got the two text box values in one variable.
    Below is my coding:
    Code:
    Dim strUrl As String
        Dim strFormData1 As String
       Dim strFormData2 As String
       
        
        strUrl = "http://bala.freetzi.com/vblicense/serialcheck.php"
    
        Inet1.URL = strUrl
        
        Inet1.Execute strUrl, "post", "serial=" & Text1.Text & "name=" & Text2.Text, "Content-Type: application/x-www-form-urlencoded"
    End Sub
    In my above coding:
    In 'serial' variable i got text box1 value , in 'name' i got textbox2 value.

    But when i receive the two values in PHP page.
    The text box1 and text box2 both values are come in 'serial' variable and no value is come in 'name' variable.

    I want to pass text box1 value in 'serial' variable and textbox2 value in 'name' variable.

    Help me to do that.Pls!

  2. #2
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: Help me in this work

    Try merging the values as

    strData="serial=" & Text1.Text & "name=" & Text2.Text

    Inet1.Execute strUrl, "post", strData, "Content-Type: application/x-www-form-urlencoded"


    If the above does not help, kindly let me know, how you are receiving the server values in the PHP page?
    Last edited by cheenu_vasan; Jan 31st, 2008 at 07:07 AM.
    Regards
    Srinivasan Baskaran
    India

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2008
    Location
    India
    Posts
    37

    Re: Help me in this work

    I put like below
    Code:
    strUrl = "http://bala.freetzi.com/vblicense/serialcheck.php"
    
        Inet1.URL = strUrl
        strData = "serial=" & Text1.Text & "name=" & Text2.Text
        
        Inet1.Execute strUrl, "post", strData, "Content-Type: application/x-www-form-urlencoded"
    But it becomes compile error.
    Is there any other way?

  4. #4
    Addicted Member
    Join Date
    Oct 2006
    Location
    Chennai, India
    Posts
    198

    Re: Help me in this work

    What you mentioned is the data posted to the server. I want how you have handled while retrieving in the PHP page which you might have written in in PHP language.

    Also retrieve the values you might have used the GetChunk.... Kindly ref. the link....

    http://www.garybeene.com/vb/tut-inet.htm
    Regards
    Srinivasan Baskaran
    India

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Help me in this work

    Quote Originally Posted by balas
    But it becomes compile error. Is there any other way?
    What is the error?

  6. #6

    Thread Starter
    Member
    Join Date
    Jan 2008
    Location
    India
    Posts
    37

    Re: Help me in this work

    There is no error.
    Both textbox1 and textbox2 value is passed in variable 'serial'. There is no value passed in variable 'name'.

    In PHP page i received Both textbox1 and textbox2 value in variable 'serial'. and is no value received in variable 'name'.

    my coding is:
    Code:
    Dim strUrl As String
        Dim strFormData1 As String
       Dim strFormData2 As String
       
        
        strUrl = "http://bala.freetzi.com/vblicense/serialcheck.php"
    
        Inet1.URL = strUrl
        
        Inet1.Execute strUrl, "post", "serial=" & Text1.Text & "name=" & Text2.Text, "Content-Type: application/x-www-form-urlencoded"
    Help me to pass textbox1 value in variable 'serial' and textbox2 value in 'name' variable form VB form to PHP page.

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