PDA

Click to See Complete Forum and Search --> : Hwo would i fill out a web based form?


lol999
Apr 17th, 2000, 06:48 AM
I am trying to fill out the form at:

http://getpaid4.com/cgi-bin/join_3_prelim.cgi



with vb code. any help would be appreciated!

Thanks

HarryW
Apr 17th, 2000, 06:52 PM
Well, if you look at the source code of that page, then you can see the form uses the POST method, which means you'll have to send the variables to the next page (the page the submit button takes you to) in the HTTP request header. By looking at the source you can see all the variable names, and you can figure out which is which.

There's a load of JavaScript there too, which to be honest I don't totally understand but you can figure most of what it does. The first bit of JavaScript is all error checking I think, to see if you've entered data in the right format. So that's not a prob as far as I can tell. There's a bit at the bottom, though, that sets a referrer value. Not quite sure what that is, actually, but I'd guess it's checking what page you came from to get to the next page ie. did you go to the next page (the one the submit button takes you to) directly from this page (the one at the URL you posted)?

You could probably just send this variable too, and give it the value the next page is expecting. NOt sure what that value is though.

Anyway, that's a few ideas. I don't actually know how to send customized HTTP requests, so if you know please tell me :)

thinh
Apr 19th, 2000, 10:36 PM
Well, if it's the script is using Get method then you just easily use the shellexecute to take you there just like normal except with some variables like "http://www.server.com/script.here?var1=value1&var2=value2&var3=value3 etc... But it uses the Post method so i don't know how you can do this.... no Idea for Post...

HarryW
Apr 19th, 2000, 10:43 PM
Like I said, you need to send the variables in the HTTP request header.

HarryW
Apr 21st, 2000, 09:12 AM
Hey if you have any luck with this then please tell me cos there was a post on this a couple months ago and I tried to help then, too. In fact I think I posted a couple of links to articles on HTTP requests, in case you're actually gonna follow this through.