Hello
I seem to be having a problem with saving hidden values. I am trying to use
the
hidden values to post infomation back to the same page and also to a
different
second page. I would like to persit the values to a couple of more pages in
this
process. I have ten different values that I am trying to save. The problem
is
I dont see these Request objects on the second page.
I have another .asp page that is included and processed on this second page
(<!--#include file=SP1.asp-->).
Do I need to pass the request items to this include file and to the real
page?
I must be doing something wrong however I am not quite sure what I must me
doing wrong.

This a snippet from the original page.

<tr>
<td width="33%" align="right">Region:&nbsp;</td>
<td align=left width="66%">
<input type="text" name="txtRegion" id="txtRegion" value=<%= strRegion %>
></td>
</tr>

<Input Type="hidden" Name="VendorRegion" Value
='"<%=Request.form("txtRegion")%>">'
.......
</form>
</BODY>
</HTML>


This a snippet from the second page. I am trying to grab the value here so
that I can
use this value on the page.

strRegion = trim(Request.form("VendorRegion").item)
......
<HTML>
<HEAD>
<TITLE>

Thanks for any insight!

Re: Hidden value by Curt_C

Curt_C
Thu Jul 15 16:01:15 CDT 2004

not sure I follow....
Remember, the include files are parsed into the existing page first, then
it's all processed.


--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"JimS" <noholycowser21spam@ya_NoJunk_hoo.com> wrote in message
news:eOmPYupaEHA.972@TK2MSFTNGP12.phx.gbl...
> Hello
> I seem to be having a problem with saving hidden values. I am trying to
use
> the
> hidden values to post infomation back to the same page and also to a
> different
> second page. I would like to persit the values to a couple of more pages
in
> this
> process. I have ten different values that I am trying to save. The
problem
> is
> I dont see these Request objects on the second page.
> I have another .asp page that is included and processed on this second
page
> (<!--#include file=SP1.asp-->).
> Do I need to pass the request items to this include file and to the real
> page?
> I must be doing something wrong however I am not quite sure what I must me
> doing wrong.
>
> This a snippet from the original page.
>
> <tr>
> <td width="33%" align="right">Region:&nbsp;</td>
> <td align=left width="66%">
> <input type="text" name="txtRegion" id="txtRegion" value=<%= strRegion %>
> ></td>
> </tr>
>
> <Input Type="hidden" Name="VendorRegion" Value
> ='"<%=Request.form("txtRegion")%>">'
> .......
> </form>
> </BODY>
> </HTML>
>
>
> This a snippet from the second page. I am trying to grab the value here
so
> that I can
> use this value on the page.
>
> strRegion = trim(Request.form("VendorRegion").item)
> ......
> <HTML>
> <HEAD>
> <TITLE>
>
> Thanks for any insight!
>
>



Re: Hidden value by andyza

andyza
Fri Jul 16 00:06:31 CDT 2004

"JimS" <noholycowser21spam@ya_NoJunk_hoo.com> wrote in message news:<eOmPYupaEHA.972@TK2MSFTNGP12.phx.gbl>...

If I got your question correctly you don't need this on the main page:
> <Input Type="hidden" Name="VendorRegion" Value
> ='"<%=Request.form("txtRegion")%>">'


Change this line:
> strRegion = trim(Request.form("VendorRegion").item)

To:
strRegion = trim(Request.form("VendorRegion"))

The ".item" isn't necessary as the Request.form("VendorRegion") will
give you the value captured in the 'VendorRegion' field on the main
page.

Also, if the 'VendorRegion' field is a list then you don't need the
trim().