PDA

Click to See Complete Forum and Search --> : Filling in FFA forms!


romeo6
Mar 17th, 2001, 10:41 PM
Hello,

Can anyone tell me how to transfer text from a text box, to an
embedded website in a Visual Basic Program?

Example:

I have a simple program, with a web browser in it, and then 3 text boxes.
One text box for "Title" one for "URL" and one for "EMAIL ADDRESS"

Basicially, this is a web page submission program, but smaller, more for
FFA pages. An example of an ffa page.. which is what i am trying to
fill in, is here. http://clubverona.com/ffapage.html

I would like to be able to fill in the the form in my program ... and then, click the
"Fill in" command button, and have the info filled in on the web page.

If that is not possible.. I would like to be able to click my mouse in the field that
I want filled in and then click a button in front of each field, say "URL" and have
the "URL" section of the form in the web page.. filled in automatically.

I have attached my "virus free" simple project.. titled "submitter.zip"

Any help would be great.

Thanks,
Dave C.

asabi
Mar 17th, 2001, 11:26 PM
You can have the VB program to open a webbrowser window (using the webbrowser control) and in the webbrowser.nevigate you put "xxx.com?textfield=blabla"

in your ASP page you can put in:

<input name="txtfield" values="<%response.write (request.querystring ("textfield"))%>

seoptimizer2001
May 2nd, 2001, 01:45 PM
Check out this link about inserting values into HTML forms on web pages, it is not up right now for some reason, but will be soon:

http://www.planetsourcecode.com/xq/ASP/txtCodeId.13439/lngWId.1/qx/vb/scripts/ShowCode.htm

Or you can use the Sendkeys method to tab through the page to each text box and assign the value from your form to a string and input the string using sendkeys and use it to press enter as well:

SendKeys "{TAB}"
SendKeys strYourString
SendKeys "{TAB}"
SendKeys strNextString
SendKeys "{TAB}"
SendKeys "~" or "{ENTER}"

Hope this helps:cool: