I'm building a program and I need it to open a web browser and submit data to a form. (I'm new to programming only been at it for about 5 months)
I do not own the website, but it is public. it's QRZ.COM Callsign Database.
I need the input named callsign to contain "xxx" how would I setup the url to have it contain that and then to submit it?
Submit forum via URL
Started by ki4jgt, Oct 07 2010 01:30 AM
6 replies to this topic
#1
Posted 07 October 2010 - 01:30 AM
|
|
|
#2
Posted 07 October 2010 - 10:53 AM
Since that form submit uses the 'post' method. You don't have to setup the url. You'd have to write a post request manually and send it manually.
I suggest you google for "send post request <Programming language here>"
I suggest you google for "send post request <Programming language here>"
#3
Posted 07 October 2010 - 12:25 PM
K thanks. and Is there a way to do it with a webpage that I make. In other words copy their form onto my website, change it a little and have it submit to them? Sorry if I'm being bothersome. Just trying figure out my options.
#4
Posted 07 October 2010 - 12:36 PM
I'm actually not sure what happens if you make a form, set the action to "http://www.qrz.com/db/" and method to "POST", + having your textfield having the same id "callsign"... Trying won't hurt ;)
Edit: okay i tested it and works
Edit: okay i tested it and works
<html> <head> <title>Test</title> </head> <body> <h1>Test</h1> <form id="topcall" action="http://www.qrz.com/db/" method="post"> <input id="callsign" name="callsign" size="20" maxlength="60" value="" /> <input type="submit" value="Search" /> </form> </body> </html>
#5
Posted 07 October 2010 - 02:19 PM
Thanks very much. I don't mean to be a bother, but what do I append to the url to fill in the form and hit search?
#6
Posted 07 October 2010 - 10:17 PM
Nothing. That's the whole thing with a POST request, it's not visible in the url and the information is sent behind the scenes.
HOWEVER
It appeirs that adding the search keywords behind "http://www.qrz.com/db/" by simply concatenating it also works. But that's because they programmed it to do so, not because POST works like that :-P
search for "value" -->"http://www.qrz.com/db/value"
HOWEVER
It appeirs that adding the search keywords behind "http://www.qrz.com/db/" by simply concatenating it also works. But that's because they programmed it to do so, not because POST works like that :-P
search for "value" -->"http://www.qrz.com/db/value"
#7
Posted 07 October 2010 - 10:38 PM
Thank you soo muc!! I have just finished my program! It rocks :-) I couldn't have done it without your help


Sign In
Create Account


Back to top









