codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Get the querystring into input box  shadow4 at 21:24 on Sunday, August 21, 2005
 

Hello,
Will some help me with this.

http://www.site.com/upload.html?dirname=abc

How to get this querystring value into the HTML form with javascript.

<tr valign=top>
<td width=30% align=right><b><font face="arial" size=-1>Directory Name:</font></b></td>
<td width=70%><font face="arial" size=-1>
<input name="dirname" size=30>
</font></td>
</tr>

I want to get this querystring and put it into this <input name="dirname" size=30>

Thanks in advance.

  Re: Get the querystring into input box  Yusairi at 03:59 on Friday, August 26, 2005
 

hi shadow4,

you need to consider using ASP language to get querystring value. currently, IIS can execute ASP.
refer below :-

path : http://www.yoursite.com/test.asp?name=shadow4

in your test.asp files :-


<%
name = Request.QueryString("name")
%>

<input name="dirname" value=<%=name%> size=30>


good luck.
Yusairi: site expert
http://www.codetoad.com









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009