Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make HTTP POST from my vb form

Status
Not open for further replies.
Apr 28, 2006
69
NL
HI all i wonsder how i can make a post request from a .php script from with in my applicaton. PAsssing it certian data and getting the request response back to a textbox. Just Like the pic i shown here. I did the layout but i do not how to write the onclick event for send button so it sends the post request. I be happy if any one help me to do that.Thanks


postmethod.jpg
 
dtgterror .Thanks for u reply . unfortuently i could not even run the exampe in your first link . It does not say what controles do i need and how it collects data . Could u help me how to make a post request such the one shown in pic.Thanks
 
look at this other thread: thread222-1226965
 
Thank u for pointing me to usefull example. Since
i am working on php . Could u tell me how i can pass
a value that has name :mp3link and value data from texbox and also how to output back the http response back to a richtexbox.in the example shown in the page it only passes one data without name(sData = "foo=bar") :Thanks


Code:
[URL unfurl="true"]http://localhost/script.php[/URL]

method : post

Name : mp3link

value : Text3

HTTP Response back to richtexbox
 
Sheco i tried your script but i do not get the correct output in immedite window:

This is the html code for the script.php
Code:
<form method=post action="script.php">
MP3 Link: <input type="text" name="mp3link" size="35">&nbsp;
<input type="submit" value="Check it!"><br><br>

If i use this on web after typeing a url in textbox and press submit it process the url and send me back with output that lookes like this :
Code:
Link: [URL unfurl="true"]http://ww.site.com/lifesong.mp3[/URL] 
Song: life song
Artist: andy
Album: power 
Year: 
Comment: 
Track: 1
Genre: Other

so i want to get same type of output after posting in my form in a richtextbox but your codes does not do that!! I be happy if u help me here.Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top