Link to home
Start Free TrialLog in
Avatar of Jimmyx1000
Jimmyx1000

asked on

Convert simple asp form to a vb6 form

Id like to use an exe to send data to an asp page

how can i convert the following to vb6

<form method="POST" action="recieve.asp">
Name <input type="text" name="Name"/>
Age <input type="text" name="Age"/>
<input type="submit" />
</form>


thanks experts
Avatar of ptan218
ptan218

I believe you can use the Internet Transfer Control component.

Then you can just form the URL as "http:/xxxxxxx.com/receive.asp?name=xxxx" etc and call the inet.OpenURL and passing the URL string.
Avatar of Jimmyx1000

ASKER

can you give the full vb6 code please


thankyou experts
ASKER CERTIFIED SOLUTION
Avatar of zzzzzooc
zzzzzooc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Check out the code that zzzzooc has given. He has provided what I meant...
>>He has provided what I meant
What did you mean?
can you please test this , to see if it works

thankyou experts
seems to be an error

compile error ,
variable not defined

on line
If (Inet1.StillExecuting = True) Then

which controls do i need to add also

thanks experts
1. Go to Project | Component
2. Look for Internet Transfer Control component.
3. Add it into your project.
4. Pick the component from the toolbox and add to your form.
How can i get some sort of response returned when the command button is clicked
i.e post info recieved ok

here is my asp recieve page


<%
Dim name, age
name = Request.Form("Name")
age = Request.Form("Age")
Response.Write("Name: " & name & "<br />")
Response.Write("Age: " & age & "<br />")
%>