mIRC Home    About    Download    Register    News    Help

Print Thread
#114600 15/03/05 07:35 PM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
back with another problem frown
/poleti.php?p2=10&type=3
/poleti2.php?ppp=10&c1=1&c2=181&c3=9&type=3&pokazatel=1&grr=1&battle1=1&battle2=2

with the first url i determine the size , with the second i have to do s.th. with it ... but for unfortunately it doens't do anything ..
if i use URL.. it make always one and the same thing ... ( i don't need that )
if i use POST to send only values ... it doesn't even do that
apparently it goes through some sort of CGI script ...
any idea how to deal with that ? frown
10x for the help smile


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#114601 16/03/05 11:25 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
I read my post and don't think i'm completely clear about the problem... so i'll try to describe it again
/poleti.php?p2=10&type=3
/poleti2.php?ppp=10&c1=1&c2=181&c3=9&type=3&pokazatel=1&grr=1&battle1=1&battle2=2

with the first url i determine the size , with the second i have to do s.th. with the determined size in samo sort of a game ... but unfortunately it doens't do anything ..
if i use sockwrite -n $sockname GET /URL.. it make always one and the same thing ... ( i don't need that )
if i use sockwrite -n $sockname values... to send only values ... it doesn't even do that.
apparently it goes through some sort of CGI script ...
any idea how to deal with that ?
10x for the help

Last edited by SteeleR; 16/03/05 11:34 AM.

HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#114602 16/03/05 11:35 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
I red my post and don't think i'm completely clear about the problem... so i'll try to describe it again
/poleti.php?p2=10&type=3
/poleti.php?ppp=10&c1=1&c2=181&c3=9&type=3&pokazatel=1&grr=1&battle1=1&battle2=2

with the first url i determine the size , with the second i have to do s.th. with the determined size in samo sort of a game ... but unfortunately it doens't do anything ..
if i use sockwrite -n $sockname GET /URL.. it make always one and the same thing ... ( i don't need that )
if i use sockwrite -n $sockname values ... to send only values ... it doesn't even do that.
apparently it goes through some sort of CGI script ...
any idea how to deal with that ?
10x for the help


poleti.php what websites this on, maybe if we could go there and see we might be able to work out what your asking.

size size of what? the text "/poleti.php?p2=10&type=3" or the returned page?

s.th. whats that ment to mean?

values are you even allowed to do POSTs to the domian ?

#114603 16/03/05 12:13 PM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
www.bulfleet.com

size - p2=10 - determines number of ships
type=3- determines type of ships
s.th. = something smile
yes .. i'm allowed but as it go trough CGI script and i know nothing about them .. i can't figure out how to deal with them ...

Last edited by SteeleR; 16/03/05 01:40 PM.

HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#114604 16/03/05 02:12 PM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
Code:
<tbody><tr bgcolor="#000099"> 
                  <td colspan="2"><div align="center"><strong><font size="2">Заповед 
                      за организиране на нова флотилия</font></strong></div></td>
                </tr>
				<tr bgcolor="#000099">
                  <td colspan="2" bgcolor="#333333"><font size="2"> Избор на кораби
                    </font></td>
                </tr>
                
							<tr> 
                  <td width="80%">

<div align="left"><font size="2">  Мега транспортьор (<a href="javascript:setMaximum('p2',97);">брой: 97</a>)</font></div>

                    </td>
                  <td width="20%"><div align="center"> <font size="2"> 
                      <input name="p2" size="5" value="0" maxlength="4" type="text">
                      </font></div></td>
                </tr>
							
							<tr> 
                  <td width="80%">

<div align="left"><font size="2">  Кръстосвач (<a href="javascript:setMaximum('p5',120);">брой: 120</a>)</font></div>

                    </td>
                  <td width="20%"><div align="center"> <font size="2"> 
                      <input name="p5" size="5" value="0" maxlength="4" type="text">
                      </font></div></td>
                </tr>
							
							<tr> 
                  <td width="80%">

<div align="left"><font size="2">  Рециклатор (<a href="javascript:setMaximum('p8',239);">брой: 239</a>)</font></div>

                    </td>
                  <td width="20%"><div align="center"> <font size="2"> 
                      <input name="p8" size="5" value="0" maxlength="4" type="text">
                      </font></div></td>
                </tr>
											<tr bgcolor="#000099">
                  <td colspan="2" bgcolor="#333333"><font size="2"> Мисия на флотилията: 
                    <select name="type" id="type"><option value="1">Транспорт</option><option value="2">Шпионаж</option><option value="3">Атака</option><option value="4">Стациониране</option></select>

                    </font></td>
                </tr>
				
				
						<tr> 
                  <td colspan="2" bgcolor="#000099"> <div align="center"><font size="2"> 
                      <input name="Submit" value="Дай заповед" type="submit">
                      </font></div>
                    <div align="center"> <font size="2"> </font></div></td>
                </tr>

						              </tbody>

Code:
<form name="aa" method="post" action="poleti2.php" onsubmit="ValidateForm()">
              <table border="1" bordercolor="#336699" cellpadding="2" cellspacing="0" width="100%">
                <tbody><tr bgcolor="#000099">
                  <td colspan="2"><div align="center"><strong><font size="2">Изпращане
                      на нова флотилия</font></strong></div></td>
                </tr>
                <tr>
                  <td width="32%"><div align="right"><font size="2">Цел: </font></div></td>
                  <td width="68%"><div align="center"><font size="2">

                      <input name="pokazatel" id="pokazatel" value="1" type="hidden">
                      <input name="type" id="type" value="1" type="hidden">
                      <input name="cargo" id="cargo" value="250000" type="hidden">
                      <input name="gaz" value="500" type="hidden">

                                                               <input name="skorost" value="89100" type="hidden">
                      <input name="tc1" id="tc1" value="2" type="hidden">
                      <input name="tc2" id="tc2" value="354" type="hidden">
                      <input name="tc3" id="tc3" value="3" type="hidden">

                      <input name="c1" id="c1" size="1" maxlength="1" onchange="y()" value="" type="text">
                      :
                      <input name="c2" id="c2" size="3" maxlength="3" onchange="y()" value="" type="text">
                      :
                      <input name="c3" id="c3" size="2" maxlength="2" onchange="y()" value="" type="text">
                      </font></div></td>
                </tr>
                                <tr>
                  <td height="26"><div align="right"><font size="2">От планета:
                      </font></div></td>

                  <td><div align="center">
                      Gamma, [2:354:3]                    </div></td>
                </tr>
                <tr>
                  <td height="26"><div align="right"><font size="2">Скорост: </font></div></td>
                  <td><div align="center">
                      <select name="ppp" size="1" id="ppp" onchange="y()"><option value="10">100%
                        </option><option value="9">90%
                        </option><option value="8">80%
                        </option><option value="7">70%
                        </option><option value="6">60%
                        </option><option value="5">50%
                        </option><option value="4">40%
                        </option><option value="3">30%
                        </option><option value="2">20%
                        </option><option value="1">10%
                      </option></select>

                    </div></td>
                </tr>
                <tr>
                  <td><div align="right"><font size="2">Далечина: </font></div></td>
                  <td><div align="center"><font size="2">
                      <div id="w"><font>-</font></div>
                      </font></div></td>
                </tr>

                <tr>
                  <td height="26"><div align="right"><font size="2">Една дължина:
                      </font></div></td>
                  <td><div align="center"><font size="2">
                      <div id="x"><font>-</font></div>
                      </font></div></td>
                </tr>
                <tr>
                  <td height="26"><div align="right"><font size="2">Разход: </font></div></td>

                  <td><div align="center"><font size="2">
                      <div id="z"><font>-</font></div>
                      </font></div></td>
                </tr>
                <tr>
                  <td height="26"><div align="right"><font size="2">Скорост: </font></div></td>
                  <td><div align="center"><font size="2">89100</font></div></td>

                </tr>
                                <tr>
                  <td height="26"><div align="right"><font size="2">Товар: </font></div></td>
                  <td><div align="center"><font size="2">250000</font></div></td>
                </tr>
                                <tr>
                  <td height="26"><div align="right"><font size="2">Свободно място: </font></div></td>

                  <td><div align="center"><font size="2">
                      <div id="lost"><font><font color="#00ff00">250000 </font></font></div>
                      </font></div></td>
                </tr>
                <tr>
                  <td height="26"><div align="right"><font size="2">
                      <input name="battle2" id="battle2" value="1" type="hidden">
                      <input name="battle1" id="battle1" value="1" type="hidden">

                      Вид: </font></div></td>
                  <td><div align="center"><font size="2">
                      Транспорт                      </font></div></td>
                </tr>

                                <tr>
                  <td height="88"><div align="right"><font size="2">Натовари корабите:
                      </font></div></td>
                  <td><div align="center"><font size="2"> </font>

                      <table border="1" bordercolor="#333333" cellpadding="2" cellspacing="0" width="200">
                        <tbody><tr>
                          <td width="119"><div align="center"><font size="2">Метал</font></div></td>
                          <td width="67"><font size="2">
                            <input name="fm" id="fm" onchange="y()" value="0" size="9" maxlength="12" type="text">
                            </font></td>
                        </tr>
                        <tr>

                          <td><div align="center"><font size="2">Кристали</font></div></td>
                          <td><font size="2">
                            <input name="fk" id="fk" onchange="y()" value="0" size="9" maxlength="12" type="text">
                            </font></td>
                        </tr>
                        <tr>
                          <td><div align="center"><font size="2">Газ</font></div></td>
                          <td><font size="2">

                            <input name="fg" id="fg" onchange="y()" value="0" size="9" maxlength="12" type="text">
                            </font></td>
                        </tr>
                      </tbody></table>
                    </div></td>
                </tr>
                <tr bgcolor="#333333">
                  <td height="26"><div align="right"><font size="2">Бърз избор:</font></div></td>

                  <td><div align="left"><font size="2">
                        <a href="javascript:setPlanet(2,354,3);">Gamma [2:354:3]</a><br>  <a href="javascript:setPlanet(2,354,4);">Delta [2:354:4]</a><br>  <a href="javascript:setPlanet(2,354,7);">Slaveya [2:354:7]</a><br>  <a href="javascript:setPlanet(1,159,6);">Omega [1:159:6]</a><br>  <a href="javascript:setPlanet(3,250,1);">Epsilon [3:250:1]</a><br>  <a href="javascript:setPlanet(2,354,8);">Miu [2:354:8]</a><br>  <a href="javascript:setPlanet(2,354,12);">Ni [2:354:12]</a><br>  <a href="javascript:setPlanet(2,279,12);">Колония [2:279:12]</a><br>  <a href="javascript:setPlanet(2,475,11);">Колония [2:475:11]</a><br>                      </font></div></td>

                </tr>
              </tbody></table>
                          <input name="p1" value="0" type="hidden"><input name="p2" value="10" type="hidden"><input name="p3" value="0" type="hidden"><input name="p4" value="0" type="hidden"><input name="p5" value="0" type="hidden"><input name="p6" value="0" type="hidden"><input name="p7" value="0" type="hidden"><input name="p8" value="0" type="hidden"><input name="p9" value="0" type="hidden"><input name="p10" value="0" type="hidden"><input name="p11" value="0" type="hidden"><input name="p12" value="0" type="hidden"><input name="p13" value="0" type="hidden">              <p align="center">
                <input name="Submit" value="Издай Заповедта!" type="submit">
              </p>
              <p> </p>
              <p> </p>
              <p> </p>
            </form>


that's the page tags
if it's from any help smile
i can change the names from BG language to English ... if u need ...


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#114605 16/03/05 08:53 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
OK that cleared some things up, but I still dont understand what you want to do?.

Start with ... What are you trying to do in the end? What is the overall purpose or action you want?


Notes:
/poleti.php?p2=10&type=3
This html was missing the <form> tag so I couldnt see if it did any validating or what page it submited to etc

/poleti2.php?ppp=10&c1=1&c2=181&c3=9&type=3&pokazatel=1&grr=1&battle1=1&battle2=2
This page submits to a function that was not listed 'onsubmit="ValidateForm()"' so I cant determine what page this page should be submited to either.
This html appeared to be generated based on the first page reason being the p2 value of 10 was the same '<input name="p2" value="10" type="hidden">', however this might not be the case reason being the type value of 3 was not the same '<input name="type" id="type" value="1" type="hidden">'


More than likely there is a site cookie needing to be passed as well and/or its using instance id's, as when i sent these pages, all i received back was what appeared to be a "you must logon first page"


The language was foreign to me as well which didnt help me frown lol

#114606 17/03/05 04:00 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
here the form from the first code ... sorry for missing it ...
Code:
&lt;form name="form1" method="post" action="poleti2.php" onsubmit="ValidateForm()"&gt;
              &lt;p align="center"&gt;*****&lt;/p&gt;

              &lt;table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#336699"&gt;
                &lt;tr bgcolor="#000099"&gt; 
                  &lt;td  colspan=2&gt;&lt;div align="center"&gt;&lt;strong&gt;&lt;font size="2"&gt;&amp;#1047;&amp;#1072;&amp;#1087;&amp;#1086;&amp;#1074;&amp;#1077;&amp;#1076; 
                      &amp;#1079;&amp;#1072; &amp;#1086;&amp;#1088;&amp;#1075;&amp;#1072;&amp;#1085;&amp;#1080;&amp;#1079;&amp;#1080;&amp;#1088;&amp;#1072;&amp;#1085;&amp;#1077; &amp;#1085;&amp;#1072; &amp;#1085;&amp;#1086;&amp;#1074;&amp;#1072; &amp;#1092;&amp;#1083;&amp;#1086;&amp;#1090;&amp;#1080;&amp;#1083;&amp;#1080;&amp;#1103;&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;/tr&gt;
				&lt;tr bgcolor="#000099"&gt;
                  &lt;td  colspan=2 bgcolor="#333333"&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;#1048;&amp;#1079;&amp;#1073;&amp;#1086;&amp;#1088; &amp;#1085;&amp;#1072; &amp;#1082;&amp;#1086;&amp;#1088;&amp;#1072;&amp;#1073;&amp;#1080;
                    &lt;/font&gt;&lt;/td&gt;
                &lt;/tr&gt;
                
							&lt;tr&gt; 
                  &lt;td width='80%'&gt;

&lt;div align='left'&gt;&lt;font size='2'&gt;&amp;nbsp; &amp;#1052;&amp;#1077;&amp;#1075;&amp;#1072; &amp;#1090;&amp;#1088;&amp;#1072;&amp;#1085;&amp;#1089;&amp;#1087;&amp;#1086;&amp;#1088;&amp;#1090;&amp;#1100;&amp;#1086;&amp;#1088; (&lt;a href=javascript:setMaximum('p2',62);&gt;&amp;#1073;&amp;#1088;&amp;#1086;&amp;#1081;: 62&lt;/a&gt;)&lt;/font&gt;&lt;/div&gt;
                    &lt;/td&gt;
                  &lt;td width='20%'&gt;&lt;div align='center'&gt; &lt;font size='2'&gt; 
                      &lt;input name='p2' type='text' size='5' value='0' maxlength='4'&gt;
                      &lt;/font&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;/tr&gt;
							
							&lt;tr&gt; 
                  &lt;td width='80%'&gt;

&lt;div align='left'&gt;&lt;font size='2'&gt;&amp;nbsp; &amp;#1050;&amp;#1088;&amp;#1098;&amp;#1089;&amp;#1090;&amp;#1086;&amp;#1089;&amp;#1074;&amp;#1072;&amp;#1095; (&lt;a href=javascript:setMaximum('p5',605);&gt;&amp;#1073;&amp;#1088;&amp;#1086;&amp;#1081;: 605&lt;/a&gt;)&lt;/font&gt;&lt;/div&gt;
                    &lt;/td&gt;
                  &lt;td width='20%'&gt;&lt;div align='center'&gt; &lt;font size='2'&gt; 
                      &lt;input name='p5' type='text' size='5' value='0' maxlength='4'&gt;
                      &lt;/font&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;/tr&gt;
							
							&lt;tr&gt; 
                  &lt;td width='80%'&gt;

&lt;div align='left'&gt;&lt;font size='2'&gt;&amp;nbsp; &amp;#1041;&amp;#1086;&amp;#1077;&amp;#1085; &amp;#1050;&amp;#1086;&amp;#1088;&amp;#1072;&amp;#1073; (&lt;a href=javascript:setMaximum('p6',16);&gt;&amp;#1073;&amp;#1088;&amp;#1086;&amp;#1081;: 16&lt;/a&gt;)&lt;/font&gt;&lt;/div&gt;
                    &lt;/td&gt;
                  &lt;td width='20%'&gt;&lt;div align='center'&gt; &lt;font size='2'&gt; 
                      &lt;input name='p6' type='text' size='5' value='0' maxlength='4'&gt;
                      &lt;/font&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;/tr&gt;
							
							&lt;tr&gt; 
                  &lt;td width='80%'&gt;

&lt;div align='left'&gt;&lt;font size='2'&gt;&amp;nbsp; &amp;#1056;&amp;#1077;&amp;#1094;&amp;#1080;&amp;#1082;&amp;#1083;&amp;#1072;&amp;#1090;&amp;#1086;&amp;#1088; (&lt;a href=javascript:setMaximum('p8',152);&gt;&amp;#1073;&amp;#1088;&amp;#1086;&amp;#1081;: 152&lt;/a&gt;)&lt;/font&gt;&lt;/div&gt;
                    &lt;/td&gt;
                  &lt;td width='20%'&gt;&lt;div align='center'&gt; &lt;font size='2'&gt; 
                      &lt;input name='p8' type='text' size='5' value='0' maxlength='4'&gt;
                      &lt;/font&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;/tr&gt;
							
							&lt;tr&gt; 
                  &lt;td width='80%'&gt;

&lt;div align='left'&gt;&lt;font size='2'&gt;&amp;nbsp; &amp;#1064;&amp;#1087;&amp;#1080;&amp;#1086;&amp;#1085;&amp;#1089;&amp;#1082;&amp;#1072; &amp;#1057;&amp;#1086;&amp;#1085;&amp;#1076;&amp;#1072; (&lt;a href=javascript:setMaximum('p9',7);&gt;&amp;#1073;&amp;#1088;&amp;#1086;&amp;#1081;: 7&lt;/a&gt;)&lt;/font&gt;&lt;/div&gt;
                    &lt;/td&gt;
                  &lt;td width='20%'&gt;&lt;div align='center'&gt; &lt;font size='2'&gt; 
                      &lt;input name='p9' type='text' size='5' value='0' maxlength='4'&gt;
                      &lt;/font&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;/tr&gt;
							
							&lt;tr&gt; 
                  &lt;td width='80%'&gt;

&lt;div align='left'&gt;&lt;font size='2'&gt;&amp;nbsp; &amp;#1059;&amp;#1085;&amp;#1080;&amp;#1097;&amp;#1086;&amp;#1078;&amp;#1080;&amp;#1090;&amp;#1077;&amp;#1083; (&lt;a href=javascript:setMaximum('p12',103);&gt;&amp;#1073;&amp;#1088;&amp;#1086;&amp;#1081;: 103&lt;/a&gt;)&lt;/font&gt;&lt;/div&gt;
                    &lt;/td&gt;
                  &lt;td width='20%'&gt;&lt;div align='center'&gt; &lt;font size='2'&gt; 
                      &lt;input name='p12' type='text' size='5' value='0' maxlength='4'&gt;
                      &lt;/font&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;/tr&gt;
											&lt;tr bgcolor="#000099"&gt;

                  &lt;td  colspan=2 bgcolor="#333333"&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;#1052;&amp;#1080;&amp;#1089;&amp;#1080;&amp;#1103; &amp;#1085;&amp;#1072; &amp;#1092;&amp;#1083;&amp;#1086;&amp;#1090;&amp;#1080;&amp;#1083;&amp;#1080;&amp;#1103;&amp;#1090;&amp;#1072;: 
                    &lt;select name="type" id="type"&gt;
						&lt;option value='1'&gt;&amp;#1058;&amp;#1088;&amp;#1072;&amp;#1085;&amp;#1089;&amp;#1087;&amp;#1086;&amp;#1088;&amp;#1090;&lt;/option&gt;                      &lt;option value="2"&gt;&amp;#1064;&amp;#1087;&amp;#1080;&amp;#1086;&amp;#1085;&amp;#1072;&amp;#1078;&lt;/option&gt;
					  &lt;option value="3"&gt;&amp;#1040;&amp;#1090;&amp;#1072;&amp;#1082;&amp;#1072;&lt;/option&gt;
                      &lt;option value="4"&gt;&amp;#1057;&amp;#1090;&amp;#1072;&amp;#1094;&amp;#1080;&amp;#1086;&amp;#1085;&amp;#1080;&amp;#1088;&amp;#1072;&amp;#1085;&amp;#1077;&lt;/option&gt;
					  
                    &lt;/select&gt;
                    &lt;/font&gt;&lt;/td&gt;

                &lt;/tr&gt;
				
				
						&lt;tr&gt; 
                  &lt;td bgcolor='#000099' colspan=2&gt; &lt;div align='center'&gt;&lt;font size='2'&gt;&amp;nbsp;
                      &lt;input type='submit' name='Submit' value='&amp;#1044;&amp;#1072;&amp;#1081; &amp;#1079;&amp;#1072;&amp;#1087;&amp;#1086;&amp;#1074;&amp;#1077;&amp;#1076;'&gt;
                      &lt;/font&gt;&lt;/div&gt;
                    &lt;div align='center'&gt; &lt;font size='2'&gt; &lt;/font&gt;&lt;/div&gt;&lt;/td&gt;
                &lt;/tr&gt;
						              &lt;/table&gt;

              &lt;p&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif"&gt;&lt;strong&gt;&amp;#1058;&amp;#1088;&amp;#1072;&amp;#1085;&amp;#1089;&amp;#1087;&amp;#1086;&amp;#1088;&amp;#1090;&amp;#1098;&amp;#1090; 
                &amp;#1080; &amp;#1072;&amp;#1090;&amp;#1072;&amp;#1082;&amp;#1080;&amp;#1090;&amp;#1077; &amp;#1076;&amp;#1086; &amp;#1076;&amp;#1088;&amp;#1091;&amp;#1075;&amp;#1080; &amp;#1080;&amp;#1075;&amp;#1088;&amp;#1072;&amp;#1095;&amp;#1080; &lt;font color="#FF0000"&gt;&amp;#1053;&amp;#1045; &amp;#1077;&lt;/font&gt; &amp;#1074;&amp;#1098;&amp;#1079;&amp;#1084;&amp;#1086;&amp;#1078;&amp;#1077;&amp;#1085;, 
                &amp;#1082;&amp;#1086;&amp;#1075;&amp;#1072;&amp;#1090;&amp;#1086; &amp;#1090;&amp;#1086;&amp;#1095;&amp;#1082;&amp;#1080;&amp;#1090;&amp;#1077; &amp;#1074;&amp;#1080; &amp;#1089;&amp;#1072; &lt;font color="#FF0000"&gt;
                2                &lt;/font&gt; &amp;#1087;&amp;#1098;&amp;#1090;&amp;#1080; &lt;em&gt;&amp;#1087;&amp;#1086;-&amp;#1084;&amp;#1072;&amp;#1083;&amp;#1082;&amp;#1086;&lt;/em&gt; &amp;#1086;&amp;#1090; &amp;#1090;&amp;#1086;&amp;#1095;&amp;#1082;&amp;#1080;&amp;#1090;&amp;#1077; &amp;#1085;&amp;#1072; &amp;#1080;&amp;#1075;&amp;#1088;&amp;#1072;&amp;#1095;&amp;#1072;, &amp;#1085;&amp;#1072; &amp;#1082;&amp;#1086;&amp;#1081;&amp;#1090;&amp;#1086; 
                &amp;#1080;&amp;#1089;&amp;#1082;&amp;#1072;&amp;#1090;&amp;#1077; &amp;#1076;&amp;#1072; &amp;#1080;&amp;#1079;&amp;#1087;&amp;#1088;&amp;#1072;&amp;#1090;&amp;#1080;&amp;#1090;&amp;#1077; &amp;#1088;&amp;#1077;&amp;#1089;&amp;#1091;&amp;#1088;&amp;#1089;&amp;#1080;(&amp;#1087;&amp;#1086;&amp;#1076;&amp;#1086;&amp;#1073;&amp;#1085;&amp;#1086; &amp;#1085;&amp;#1072; &amp;#1087;&amp;#1088;&amp;#1072;&amp;#1074;&amp;#1080;&amp;#1083;&amp;#1086;&amp;#1090;&amp;#1086; &amp;#1079;&amp;#1072; &amp;#1072;&amp;#1090;&amp;#1072;&amp;#1082;&amp;#1080;&amp;#1090;&amp;#1077;).&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
              &lt;p&gt;&lt;strong&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif"&gt;&lt;a href="http://bulfleet.com/phpbb/viewtopic.php?t=6917" target="_blank"&gt;&amp;#1047;&amp;#1072; 
                &amp;#1087;&amp;#1086;&amp;#1074;&amp;#1077;&amp;#1095;&amp;#1077; &amp;#1080;&amp;#1085;&amp;#1092;&amp;#1086;&amp;#1088;&amp;#1084;&amp;#1072;&amp;#1094;&amp;#1080;&amp;#1103; &amp;#1087;&amp;#1088;&amp;#1086;&amp;#1095;&amp;#1077;&amp;#1090;&amp;#1077;&amp;#1090;&amp;#1077; &amp;#1090;&amp;#1091;&amp;#1082;&lt;br&gt;

                &lt;/a&gt;&lt;/font&gt;&lt;/strong&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif"&gt;&lt;a href="http://bulfleet.com/phpbb/viewtopic.php?t=6917" target="_blank"&gt; 
                &lt;em&gt;&lt;font size="2"&gt;(&amp;#1087;&amp;#1086;&amp;#1089;&amp;#1083;&amp;#1077;&amp;#1076;&amp;#1085;&amp;#1086; &amp;#1086;&amp;#1073;&amp;#1085;&amp;#1086;&amp;#1074;&amp;#1077;&amp;#1085;&amp;#1080; &amp;#1085;&amp;#1072; 9 &amp;#1052;&amp;#1072;&amp;#1088;&amp;#1090; 2005)&lt;/font&gt;&lt;/em&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
              &lt;p&gt;&amp;nbsp;&lt;/p&gt;
              &lt;p&gt;&amp;nbsp;&lt;/p&gt;
              &lt;p&gt;&amp;nbsp;&lt;/p&gt;
            &lt;/form&gt; &lt;font face="verdana" color="#bccbdc" size="1.5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/td&gt;


the purpose is as follows: it's a game and i'm trying to play it from IRC .... with the two URL i set and sent armies ...
Code:
   function ValidateForm() {
        document.form1.Submit.disabled = true;
        return true;
  ]

this is the ValidateForm smile


after sending the two URL using the browser it sends armies => p9=1&type=2 ... i quess that's the default ... and sending p2=10&type=10 doen's disturb it at all

after sending the two pages it open third one -> /poleti.php?ruckruf=1516618
as the number varies and 'ruckruf' isn't mantioned inthe poleti.php's source ...


i currently can't give u a cookie .. cause my account can't send armies now .. but as soon as it can .. i'll provide to u one ..

Last edited by SteeleR; 17/03/05 04:17 AM.
#114607 17/03/05 06:09 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
OK i think im picking up on where you might be going wrong, the fact i cant read the pages becuase I only know english hasent helped me LOL

ok poleti.php has the following http FORM fields
Code:
&lt;form name="form1" method="post" action="poleti2.php" onsubmit="ValidateForm()"&gt;
  &lt;input name='p2' type='text' size='5' value='0' maxlength='4'&gt;
  &lt;input name='p5' type='text' size='5' value='0' maxlength='4'&gt;
  &lt;input name='p6' type='text' size='5' value='0' maxlength='4'&gt;
  &lt;input name='p8' type='text' size='5' value='0' maxlength='4'&gt;
  &lt;input name='p9' type='text' size='5' value='0' maxlength='4'&gt;
  &lt;input name='p12' type='text' size='5' value='0' maxlength='4'&gt;
  &lt;select name="type" id="type"&gt;
    &lt;option value='1'&gt;TpaHcnopT&lt;/option&gt;
    &lt;option value="2"&gt;WnNoHak&lt;/option&gt;
    &lt;option value="3"&gt;ATaKa&lt;/option&gt;
    &lt;option value="4"&gt;CTauNoHNpaHe&lt;/option&gt;
  &lt;/select&gt;
  &lt;input type='submit' name='Submit' value='&amp;#1044;&amp;#1072;&amp;#1081; &amp;#1079;&amp;#1072;&amp;#1087;&amp;#1086;&amp;#1074;&amp;#1077;&amp;#1076;'&gt;
&lt;/form&gt;



This means that IF you want to emulate entering values on page poleti.php you dont try and set those values and GET or POST poleti.php , you want the FORM tag action="value" Page.
<form name="form1" method="post" action="poleti2.php" onsubmit="ValidateForm()">
So it should read like this .... /poleti2.php?p2=????&p5=????&p6=????&p8=????&p9=????&p12=????&type=<1,2,3,4>
example >>>> /poleti2.php?p2=10&type=3 ...or... /poleti2.php?p2=10&p5=0&p6=0&p8=0&p9=0&p12=0&type=3



poleti2.php has the following http FORM fields, note the action="poleti2.php" so it submits to itself.
Code:
&lt;form name="aa" method="post" action="poleti2.php" onsubmit="ValidateForm()"&gt;
  &lt;input name="pokazatel" id="pokazatel" value="1" type="hidden"&gt;
  &lt;input name="type" id="type" value="1" type="hidden"&gt;
  &lt;input name="cargo" id="cargo" value="250000" type="hidden"&gt;
  &lt;input name="gaz" value="500" type="hidden"&gt;
  &lt;input name="skorost" value="89100" type="hidden"&gt;
  &lt;input name="tc1" id="tc1" value="2" type="hidden"&gt;
  &lt;input name="tc2" id="tc2" value="354" type="hidden"&gt;
  &lt;input name="tc3" id="tc3" value="3" type="hidden"&gt;
  &lt;input name="c1" id="c1" size="1" maxlength="1" onchange="y()" value="" type="text"&gt;
  &lt;input name="c2" id="c2" size="3" maxlength="3" onchange="y()" value="" type="text"&gt;
  &lt;input name="c3" id="c3" size="2" maxlength="2" onchange="y()" value="" type="text"&gt;
  &lt;select name="ppp" size="1" id="ppp" onchange="y()"&gt;
   &lt;option value="10"&gt;100%&lt;/option&gt;
   &lt;option value="9"&gt;90%&lt;/option&gt;
   &lt;option value="8"&gt;80%&lt;/option&gt;
   &lt;option value="7"&gt;70%&lt;/option&gt;
   &lt;option value="6"&gt;60%&lt;/option&gt;
   &lt;option value="5"&gt;50%&lt;/option&gt;
   &lt;option value="4"&gt;40%&lt;/option&gt;
   &lt;option value="3"&gt;30%&lt;/option&gt;
   &lt;option value="2"&gt;20%&lt;/option&gt;
   &lt;option value="1"&gt;10%&lt;/option&gt;
  &lt;/select&gt;
  &lt;input name="battle2" id="battle2" value="1" type="hidden"&gt;
  &lt;input name="battle1" id="battle1" value="1" type="hidden"&gt;
  &lt;input name="fm" id="fm" onchange="y()" value="0" size="9" maxlength="12" type="text"&gt;
  &lt;input name="fk" id="fk" onchange="y()" value="0" size="9" maxlength="12" type="text"&gt;
  &lt;input name="fg" id="fg" onchange="y()" value="0" size="9" maxlength="12" type="text"&gt;
  &lt;input name="p1" value="0" type="hidden"&gt;
  &lt;input name="p2" value="10" type="hidden"&gt;
  &lt;input name="p3" value="0" type="hidden"&gt;
  &lt;input name="p4" value="0" type="hidden"&gt;
  &lt;input name="p5" value="0" type="hidden"&gt;
  &lt;input name="p6" value="0" type="hidden"&gt;
  &lt;input name="p7" value="0" type="hidden"&gt;
  &lt;input name="p8" value="0" type="hidden"&gt;
  &lt;input name="p9" value="0" type="hidden"&gt;
  &lt;input name="p10" value="0" type="hidden"&gt;
  &lt;input name="p11" value="0" type="hidden"&gt;
  &lt;input name="p12" value="0" type="hidden"&gt;
  &lt;input name="p13" value="0" type="hidden"&gt;
  &lt;input name="Submit" value="&amp;#1048;&amp;#1079;&amp;#1076;&amp;#1072;&amp;#1081; &amp;#1047;&amp;#1072;&amp;#1087;&amp;#1086;&amp;#1074;&amp;#1077;&amp;#1076;&amp;#1090;&amp;#1072;!" type="submit"&gt;
&lt;/form&gt;

I would say all of them fields likely need to be submited on the second time submitting not just /poleti2.php?ppp=10&c1=1&c2=181&c3=9&type=3&pokazatel=1&grr=1&battle1=1&battle2=2

Also note the <input name="p2" value="10" type="hidden"> hidden field its set to 10 from your initial submit


Quote:
after sending the two pages it open third one -> /poleti.php?ruckruf=1516618
as the number varies and 'ruckruf' isn't mantioned inthe poleti.php's source ...

Be aware that name=value pairs need not appear on the page they are sent to , php pages (I assume) are like ASP pages and are dynamicly created so u only see part of them. The name p2 may mean something complety different on the page it was sent to than the page it was sent from (however i dont think this is the case here) . Simily the ruckruf=1516618 means something to the PHP source for page poleti.php, but does not appear in the html that you recieve for it, iot is acted apon and controls what is presented in the html.

Quote:
Code:
   function ValidateForm() {
        document.form1.Submit.disabled = true;
        return true;


Thats just sad, they disabled the submit button, to stop someone submitting twice, I dont even think you can submit twice, maybe clicking the [x] stop button real fast might have let them i dont know.


Hope I have been some level of help, I dont really know how much, as while I have done some web stuff, it really started to get insane how mix and match everything seemed so I went down another avenue of development, and real have never looked back.

#114608 17/03/05 07:04 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
10x man .. gonna try it ...


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#114609 18/03/05 09:54 AM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
http://bulfleet.com/poleti2.php?p2=10&am...1&battle2=1



it's working ... 10x very much man ...
i wasn't going to try to send all variable with poleti2.php ... 10x smile


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg
#114610 18/03/05 01:14 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Cool, sorry it took a few times for me to pickup on what was wrong, I look at it now and its clear right from the start, but the foreign language put me off enough i wasnt thinking clearly. :-]

#114611 18/03/05 03:05 PM
Joined: Sep 2004
Posts: 73
S
SteeleR Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Sep 2004
Posts: 73
no problem ... it's even better for me .. because i did a lot of thinking too and for first time reading HTML tags i think it requires expirience which can be only provided by reading and trying such things wink) ( haha ... still can't spreak english very well and I sound funny even to me )
10x man smile


HanPeg HanPeg u BuHaru HanPeg nPu noPa}|{eHue kParoM u nAk HanPeg

Link Copied to Clipboard