[quote author=senseihitokiri link=topic=485.msg2371#msg2371 date=1159926973]
I was getting ready to set up a packet sniffer. You saved me a lot of effort and I really appreciate that.
[/quote]
Umm that's like using a train engine to pull a single empty semi trailer. Overkill!
The following instructions would lead to the url:
open the combine items page.
in firefox right click a blank area of the frame you want to view the source code in, and select "this frame" Then "view frame source"
in IE right click the frame you want to view, and select "view source".
find "form name"
Code:
form name=combine action=combine.php
That tells you that you are looking at combine.php
forms always have a ? following the base web address.
combine.php?
next you will see:
Code:
input type=hidden name=action value="combine"
so now we have combine.php?action=combine
to seperate any following fields after the first is an & character
next:
Code:
input type=hidden name=pwd value="modified for security"
for kolmafia script purposes only we just use "pwd"
combine.php?action=combine&pwd
next:
Code:
<center>Combine<br><select name=item1><option value=0>-select an item-</option>
so now we have:
combine.php?action=combine&pwd&item1=###
### denotes a variable number based on user selection
now we need to search for the next occurance of "</select>" using the search function of our text viewing software.
and we see immediately after that:
Code:
<select name=item2><option value=0>-select an item-</option>
now we have:
combine.php?action=combine&pwd&item1=###&item2=###
again we need to search for the next occurance of "</select>" using the search function of our text viewing software.
and we see immediately after that:
Code:
<p>Make <input class=text type=text size=5 value=1 name=quantity>
combine.php?action=combine&pwd&item1=###&item2=###&quantity=###
next:
Code:
<input type=checkbox name=makemax>
checkboxes have a possibility of on or off. This part can be omitted for off.
combine.php?action=combine&pwd&item1=###&item2=###&quantity=###&makemax=off
next:
Code:
<input class=button type=submit value="Combine">
combine.php?action=combine&pwd&item1=###&item2=###&quantity=###&makemax=off&combine=Combine
Now we know the full format for the url...We can rule the world!
HaHa anyway, I just wanted to demonstrate how easy it is to read html forms and convert them to url. Holatuwol has to do this often unless he has a program to do it for him.
Oh and I hope I got everything right...if not, I'm sure someone will correct me.