please help

S

smh

Please I need some help. I have this script in my front page working for
archiving and it is working perfect but the problem is when i choose for
example http://www....com/2006/01/28.htm it works but from this after this
date load the page if I go to choose another date it give me like that
http://www.....com/2006/01/2006/01/31.htm so I need some help please to let
it works. I mean when I choose another date it clear the old one and get the
new one choosed.

<form onsubmit="getarchive();return false">


<select name=Day size="1" tabindex="1">

<option VALUE=01 selected>01</Option>

<option VALUE=02>02</Option>

<option VALUE=03>03</Option>

<option VALUE=04>04</Option>

<option VALUE=05>05</Option>

<option VALUE=06>06</Option>

<option VALUE=07>07</Option>

<option VALUE=08>08</Option>

<option VALUE=09>09</Option>

<option VALUE=10>10</Option>

<option VALUE=11>11</Option>

<option VALUE=12>12</Option>

<option VALUE=13>13</Option>

<option VALUE=14>14</Option>

<option VALUE=15>15</Option>

<option VALUE=16>16</Option>

<option VALUE=17>17</Option>

<option VALUE=18>18</Option>

<option VALUE=19>19</Option>

<option VALUE=20>20</Option>

<option VALUE=21>21</Option>

<option VALUE=22>22</Option>

<option VALUE=23>23</Option>

<option VALUE=24>24</Option>

<option VALUE=25>25</Option>

<option VALUE=26>26</Option>

<option VALUE=27>27</Option>

<option VALUE=28>28</Option>

<option VALUE=29>29</Option>

<option VALUE=30>30</Option>

<option VALUE=31>31</Option></select><font
color="#FFFFFF">/</font><select name=Month size="1" tabindex="1">

<option VALUE=01 selected>01</option>

<option VALUE=02>02</option>

<option VALUE=03>03</option>

<option VALUE=04>04</option>

<option VALUE=05>05</option>

<option VALUE=06>06</option>

<option VALUE=07>07</option>

<option VALUE=8>8</option>

<option VALUE=9>9</option>

<option VALUE=10>10</option>

<option VALUE=11>11</option>

<option VALUE=12>12</option></select></font><font
color="#FFFFFF">/</font><font face='arial ' size=-1><select name=Year
size="1" tabindex="1">

<option VALUE=2005>2005</option>
<option value="2006" selected>2006</option>
</select></font></p>

<p dir="ltr" align="left">

<input type="submit" value="Go" style="float: left"></p>

<script type="text/javascript">

function getarchive() {

var d = document.forms[0]

var loc = d.Year.value + "/" + d.Month.value + "/" + d.Day.value +

".htm"

document.location.href = loc

}

</script>

</script>

</form>

Thanks in Advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top