Hello,
I've a question: I don’t know much, so please bare with me.
http://www.site.com/upload.html?dirname=abc
I want this querystring value (abc) into <input name="dirname">
<script type = "text/javascript" language = "Javascript">
<!-- Hide from older browsers;
{
var qPos = document.URL.indexOf('?');
dirname.value = document.URL.substr(qPos);
}
// end hide -->
</script>
I have tried with this code but unable to get the results.
[upload.html form]
<form ENCTYPE="multipart/form-data" method=post action="http:// www.site.com/cgi-bin/upload.cgi">
<td width=30% align=right><b><font face="arial" size=-1>Directory Name:</font></b></td>
<input name="dirname" size=30>
</font></td>
</tr>
Any Help Please?