Jump to content

Submit forum via URL

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
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?

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
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>"

#3
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
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
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
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
<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
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
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
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
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"

#7
ki4jgt

ki4jgt

    Learning Programmer

  • Members
  • PipPipPip
  • 84 posts
Thank you soo muc!! I have just finished my program! It rocks :-) I couldn't have done it without your help