Join 3,372 readers in helping fund MetaFilter (Hide)


HTML Job Search
August 29, 2012 1:10 AM   Subscribe

Can I use a form/survey on an HTML page to enter data and have the entered code append to the end of a URL that, apart from the variable suffix, remains constant?

Going to do my best to explain this with zilch technical vocabulary:

Would like users to be able to search for "jobs logged" using a unique Job ID (but have no control on the site on which houses the job info).

The jobs are filed consistently as follows:
http://blahblahblah/subfolder/LoggedJobs.aspx?ID=1234
http://blahblahblah/subfolder/LoggedJobs.aspx?ID=4567


So, will a input field be able to take whatever text is entered and open the URL with the inputted job number stuck to the end of it? Is there a better option that'll get the same result of having an easy interface to enter a code and be displayed a page relevant to that code?
posted by kreestar to Computers & Internet (3 answers total) 3 users marked this as a favorite
 
This is what forms are for! An HTML page that looks like this will do what you want, I think. Drop this text into a blank .txt file (replace the URL obviously) and rename the extension to .html, open the file in your webbrowser of choice.
<html>
<head>
<title>Logged Jobs form</title>
</head>
<body>
<form action="http://blahblahblah/subfolder/LoggedJobs.aspx" method=GET>
<input type=text name=ID>
<input type=submit value="Go">
</form>
</body>
</html>

posted by BungaDunga at 1:28 AM on August 29, 2012


Oooooooooooo! That did it! You've saved us endless minutes of frustration.

Thank you!
posted by kreestar at 1:35 AM on August 29, 2012


And if there is a predefined set of values for "ID" then:
<form action="http://blahblahblah/subfolder/LoggedJobs.aspx" method="GET">
<select name="ID">
    <option>1234</option>
    <option>4567</option>
</select>	
<input type="submit" value="Go">
</form>

posted by artlung at 8:21 AM on August 29, 2012


« Older What are your benchmark items ...   |  Please suggest Brazilian hip h... Newer »
This thread is closed to new comments.