The asp page I'm working with has a query string fed into it, and the URL is:
replyToThread.asp?MainThreadNum=14
On that page, I have a form with this code:
If I type "hey" in the "content" text box and click submit, the browser goes to:
scriptSubThread.asp?MainThreadNum=&Content=hey
As you can see, MainThreadNum has no value. I want to pass the same MainThreadNum from the previous page's QueryString on to this page.
What am I doing wrong??
replyToThread.asp?MainThreadNum=14
On that page, I have a form with this code:
Code:
<form method="get" action="scriptSubThread.asp">
<table>
<tr>
<td align="right">
<input type="hidden" name="MainThreadNum" value="<%request.querystring("MainThreadNum")%>" >
</td>
<td align="left">
Content: <input type="text" name="Content">
</td>
</tr>
<tr>
<td>
<input type="submit" value="submit">
</td>
</tr>
</table>
</form>
If I type "hey" in the "content" text box and click submit, the browser goes to:
scriptSubThread.asp?MainThreadNum=&Content=hey
As you can see, MainThreadNum has no value. I want to pass the same MainThreadNum from the previous page's QueryString on to this page.
What am I doing wrong??