I need to pass my students password between pages for the student to take
their Federal Test.

PageA the student enters his Password

<Input Type="Text" Name="PssWrd"> The student then goes to Page B

PageB <!--Student Selects Location of School-->

<Input Type="Hidden" Name="APssWrd" Value="<%=Request("PssWrd")%>
Above Statement PassWord comes in fine.

<Map Name="District ElPaso"

<! District 835 ->
<Area Shape="Polygon" Coords="364, 117, 363, 130"
Href="Page835.asp?DistCd=WI835">
<! District 777 ->
<Area Shape="Polygon" Coords="119, 68, 111, 111"
Href="Page777.asp?DistCd=WH777">
<! District 654 ->
<Area Shape="Polygon" Coords="267, 58, 261, 79"
Href="Page653.asp?DistCd=WD653">
<! District 569 ->
<Area Shape="Polygon" Coords="82, 16, 37, 9" Href="Page569.asp?DistCd=WA569">
</Map>

When I go to any of the four pages on the Map, the password will not come
with any of those four pages. The pages come up fine, but no password.

Does anyone know how to do this. This is the first Time I have ever called
a page based on where the student selects from a map.

Does anyone know what I need to do?

Thanks in advance

Granny

Re: Passing Passwords Between Pages by McKirahan

McKirahan
Sat Nov 05 14:35:47 CST 2005

"GrandMaMa" <GrandMaMa@discussions.microsoft.com> wrote in message
news:49AF57A4-45A3-4316-A6E3-3B38DA105827@microsoft.com...
> I need to pass my students password between pages for the student to take
> their Federal Test.
>
> PageA the student enters his Password
>
> <Input Type="Text" Name="PssWrd"> The student then goes to Page B
>
> PageB <!--Student Selects Location of School-->
>
> <Input Type="Hidden" Name="APssWrd" Value="<%=Request("PssWrd")%>
> Above Statement PassWord comes in fine.
>
> <Map Name="District ElPaso"
>
> <! District 835 ->
> <Area Shape="Polygon" Coords="364, 117, 363, 130"
> Href="Page835.asp?DistCd=WI835">
> <! District 777 ->
> <Area Shape="Polygon" Coords="119, 68, 111, 111"
> Href="Page777.asp?DistCd=WH777">
> <! District 654 ->
> <Area Shape="Polygon" Coords="267, 58, 261, 79"
> Href="Page653.asp?DistCd=WD653">
> <! District 569 ->
> <Area Shape="Polygon" Coords="82, 16, 37, 9"
Href="Page569.asp?DistCd=WA569">
> </Map>
>
> When I go to any of the four pages on the Map, the password will not come
> with any of those four pages. The pages come up fine, but no password.
>
> Does anyone know how to do this. This is the first Time I have ever
called
> a page based on where the student selects from a map.
>
> Does anyone know what I need to do?
>
> Thanks in advance
>
> Granny

"href=" does not "post" form elements to the page requested.

Either change "href=" to submit the form or, better yet,
use an ASP Session variable to store the password.



Re: Passing Passwords Between Pages by GrandMaMa

GrandMaMa
Sat Nov 05 15:46:05 CST 2005

Mr. McKirahan

I have only used Submit in conjunction with Method Post. I cannot
fiqure out the syntax for bringing up the right map. I am searching my books
but cannot find what I need. I have also never used Session Variables and
storing the Page I want to go to is not working either.

Can you show me an example of either method so I can quit guessing as
to what the syntax is.

Thanks Again



"McKirahan" wrote:

> "GrandMaMa" <GrandMaMa@discussions.microsoft.com> wrote in message
> news:49AF57A4-45A3-4316-A6E3-3B38DA105827@microsoft.com...
> > I need to pass my students password between pages for the student to take
> > their Federal Test.
> >
> > PageA the student enters his Password
> >
> > <Input Type="Text" Name="PssWrd"> The student then goes to Page B
> >
> > PageB <!--Student Selects Location of School-->
> >
> > <Input Type="Hidden" Name="APssWrd" Value="<%=Request("PssWrd")%>
> > Above Statement PassWord comes in fine.
> >
> > <Map Name="District ElPaso"
> >
> > <! District 835 ->
> > <Area Shape="Polygon" Coords="364, 117, 363, 130"
> > Href="Page835.asp?DistCd=WI835">
> > <! District 777 ->
> > <Area Shape="Polygon" Coords="119, 68, 111, 111"
> > Href="Page777.asp?DistCd=WH777">
> > <! District 654 ->
> > <Area Shape="Polygon" Coords="267, 58, 261, 79"
> > Href="Page653.asp?DistCd=WD653">
> > <! District 569 ->
> > <Area Shape="Polygon" Coords="82, 16, 37, 9"
> Href="Page569.asp?DistCd=WA569">
> > </Map>
> >
> > When I go to any of the four pages on the Map, the password will not come
> > with any of those four pages. The pages come up fine, but no password.
> >
> > Does anyone know how to do this. This is the first Time I have ever
> called
> > a page based on where the student selects from a map.
> >
> > Does anyone know what I need to do?
> >
> > Thanks in advance
> >
> > Granny
>
> "href=" does not "post" form elements to the page requested.
>
> Either change "href=" to submit the form or, better yet,
> use an ASP Session variable to store the password.
>
>
>

Re: Passing Passwords Between Pages by sgcoleman

sgcoleman
Sat Nov 05 20:31:47 CST 2005

My solution would be to create a form for each area, put hidden
textboxes in the form containing the password and DistCd, then do a
javascript form.submit on click of each area which submits the form
associated with the clicked area.


Re: Passing Passwords Between Pages by McKirahan

McKirahan
Sun Nov 06 10:14:03 CST 2005

"GrandMaMa" <GrandMaMa@discussions.microsoft.com> wrote in message
news:D25C1E35-C9AD-4C0A-9E23-D08A31960DFC@microsoft.com...
> Mr. McKirahan
>
> I have only used Submit in conjunction with Method Post. I cannot
> fiqure out the syntax for bringing up the right map. I am searching my
books
> but cannot find what I need. I have also never used Session Variables and
> storing the Page I want to go to is not working either.
>
> Can you show me an example of either method so I can quit guessing as
> to what the syntax is.
>
> Thanks Again

[snip]

Credit Bob Barrows for the following:

A better group to post this in would have been .inetserver.asp.general. You
should follow up there.

Here's an example:

<%
Session("password")="my secret password"
%>

For more information see the documentation at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html
/050e0924-fd83-45e7-b105-50710538d6c1.asp



Your original post stated:
"I need to pass my students password between pages ..."

Change
<Input Type="Hidden" Name="APssWrd"
Value="<%=Request("PssWrd")%>
to
<Input Type="Hidden" Name="APssWrd"
Value="<%=Session("password")%>




Re: Passing Passwords Between Pages by German

German
Thu Nov 10 22:47:54 CST 2005

<!--Student Selects Location of School-->

<script language="javascript">
function postpage(tpage,DistCd) {
document.forms[0].action=tpage;
document.forms[0].DistCd.value=DistCd;
document.forms[0].submit();
}
</script>

<form name="form1">
<Input Type="Hidden" Name="APssWrd" Value="<%=Request("PssWrd")%>
<Input Type="Hidden" Name="DistCd">

<Map Name="District ElPaso">
<! District 835 ->
<Area Shape="Polygon" Coords="364, 117, 363, 130" Href="javascript:
postpage('Page835.asp','WI835');">
<! District 777 ->
<Area Shape="Polygon" Coords="119, 68, 111, 111" Href="javascript:
postpage('Page777.asp','WH777');">
<! District 654 ->
<Area Shape="Polygon" Coords="267, 58, 261, 79" Href="javascript:
postpage('Page653.asp','WD653');">
<! District 569 ->
<Area Shape="Polygon" Coords="82, 16, 37, 9" Href="javascript:
postpage('Page569.asp','WA569');">
</Map>
</form>

"GrandMaMa" <GrandMaMa@discussions.microsoft.com> wrote in message
news:D25C1E35-C9AD-4C0A-9E23-D08A31960DFC@microsoft.com...
> Mr. McKirahan
>
> I have only used Submit in conjunction with Method Post. I cannot
> fiqure out the syntax for bringing up the right map. I am searching my
books
> but cannot find what I need. I have also never used Session Variables and
> storing the Page I want to go to is not working either.
>
> Can you show me an example of either method so I can quit guessing as
> to what the syntax is.
>
> Thanks Again
>
>
>
> "McKirahan" wrote:
>
> > "GrandMaMa" <GrandMaMa@discussions.microsoft.com> wrote in message
> > news:49AF57A4-45A3-4316-A6E3-3B38DA105827@microsoft.com...
> > > I need to pass my students password between pages for the student to
take
> > > their Federal Test.
> > >
> > > PageA the student enters his Password
> > >
> > > <Input Type="Text" Name="PssWrd"> The student then goes to Page B
> > >
> > > PageB <!--Student Selects Location of School-->
> > >
> > > <Input Type="Hidden" Name="APssWrd" Value="<%=Request("PssWrd")%>
> > > Above Statement PassWord comes in fine.
> > >
> > > <Map Name="District ElPaso"
> > >
> > > <! District 835 ->
> > > <Area Shape="Polygon" Coords="364, 117, 363, 130"
> > > Href="Page835.asp?DistCd=WI835">
> > > <! District 777 ->
> > > <Area Shape="Polygon" Coords="119, 68, 111, 111"
> > > Href="Page777.asp?DistCd=WH777">
> > > <! District 654 ->
> > > <Area Shape="Polygon" Coords="267, 58, 261, 79"
> > > Href="Page653.asp?DistCd=WD653">
> > > <! District 569 ->
> > > <Area Shape="Polygon" Coords="82, 16, 37, 9"
> > Href="Page569.asp?DistCd=WA569">
> > > </Map>
> > >
> > > When I go to any of the four pages on the Map, the password will not
come
> > > with any of those four pages. The pages come up fine, but no
password.
> > >
> > > Does anyone know how to do this. This is the first Time I have ever
> > called
> > > a page based on where the student selects from a map.
> > >
> > > Does anyone know what I need to do?
> > >
> > > Thanks in advance
> > >
> > > Granny
> >
> > "href=" does not "post" form elements to the page requested.
> >
> > Either change "href=" to submit the form or, better yet,
> > use an ASP Session variable to store the password.
> >
> >
> >