Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Need help filling out a form with a VB script
Closed Thread
Old 06-11-2004, 12:00 PM   #1 (permalink)
 
Newb Techie

Join Date: Jun 2004

Posts: 5

Kite

Send a message via AIM to Kite
Default Need help filling out a form with a VB script

I am writing a script to log into a page and go to the upload page to upload a specified file. However on the upload page, I cannot find the area to put the file location. I did another form fine, but I can't seem to find the correct field on this page.

Thanks for any help that you can give me.

Attached is the relevant part of the source code for the page.
Kite is offline  
Old 06-21-2004, 06:50 PM   #2 (permalink)
 
Wizard Techie

Join Date: Apr 2004

Posts: 3,248

killians45

Default

Im not sure if I'm understanding the question correctly, but if uploading with .asp, that should be upto you host to provide the server side info.
__________________
If you argue with an idiot he will drag you down to his level and beat you with experience.

I am not a fast writer.
I am not a slow writer.
I am a half-fast writer.

-Robert Asprin
killians45 is offline  
Old 07-06-2004, 01:05 PM   #3 (permalink)
 
Newb Techie

Join Date: Jun 2004

Posts: 5

Kite

Send a message via AIM to Kite
Default

I don't think the host wants to provide some info, because they have a pay service that lets you do server to server connections. I could do that but I don't want to pay. So finding a way to automate the uploads is what I'm looking for and I can't figure out how to fill out the form on the page with the script.
Kite is offline  
Old 07-07-2004, 03:15 AM   #4 (permalink)
 
True Techie

Join Date: Oct 2003

Posts: 204

gruntwerk

Default

an example from vb :
filling in textboxes and clicking the button

brwWebBrowser.Document.Forms("User").username.Valu e = "username"
brwWebBrowser.Document.Forms("User").password.Valu e = "password"
brwWebBrowser.Document.Forms("User").submit1.Click
gruntwerk is offline  
Old 07-07-2004, 10:50 AM   #5 (permalink)
 
Newb Techie

Join Date: Jun 2004

Posts: 5

Kite

Send a message via AIM to Kite
Default

Cool, I got one of the two fields to work, the one that just takes in text. But, the other field, the one I really need, takes a file and has a browse button next to it. How do I set the value there to the location of the file on my drive. I want it to be "c:\file.txt".
Thanks
Kite is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On