|
-
Jan 31st, 2008, 06:47 AM
#1
Thread Starter
Member
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!
-
Jan 31st, 2008, 07:03 AM
#2
Addicted Member
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
-
Jan 31st, 2008, 07:09 AM
#3
Thread Starter
Member
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?
-
Jan 31st, 2008, 07:13 AM
#4
Addicted Member
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
-
Jan 31st, 2008, 07:50 AM
#5
Re: Help me in this work
 Originally Posted by balas
But it becomes compile error. Is there any other way?
What is the error?
-
Jan 31st, 2008, 08:18 AM
#6
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|