Posts: 26
Location: Good ol' U.S. of A. Leicester, MA.
|
OK, I've been trying to make a form that sends the visitor to a specific page on a different site, once they enter info into the fields:
1. username - a basic text field
2. category - a dropdown menu of about 15 selections.
when they click "submit" it brings them to the page using the info they entered. It's a different site than mine, and this will hopefully make it faster and easier to show them their rank. Here's the HTML code that I'm using (showing only important stuff):
Code:
<form action="http://secure2.runescape.com/aff/runescape/mod/
hiscore/hiscoreuser.cgi">
<input type="text" name="username">
<select name="category">
<option value="14">Agility</option>
<option value="5">Cooking</option>
<option value="10">Crafting</option>
<option value="1">Fighting</option>
<option value="9">Firemaking</option>
<option value="8">Fishing</option>
<option value="0">Skill Total</option>
<option value="7">Fletching</option>
<option value="13">Herblaw</option>
<option value="4">Magic</option>
<option value="12">Mining</option>
<option value="3">Prayer</option>
<option value="2">Ranged</option>
<option value="11">Smithing</option>
<option value="15">Thieving</option>
<option value="6">Woodcutting</option>
</select>
<input type="submit" value="Search">
</form>
Well, I made the form by pulling apart the code on the other site. It works absolutely fine on my own computer But when i upload it to my website, I get a "page not found" error from the other site. The URL is exactly identical to the one used on the other site.
But here's the thing: when i submit, I get a "page not found", but changing either the value of the category in any way, or the username to anything else makes it work (but defeats the purpose). Here's my site where it's located: http://salmoneus.net/hiscore.html
I'm wondering if there is a script that I need to use to do this? I know that the other site with the info on it uses cgi to look the player up. I just have no idea what to even do. I checked www.hotscripts.com for something, but couldn't find anything.  Someone plz help!!
|