Forms and passing session variables

  • Thread starter Thread starter Evan Rosenbaum
  • Start date Start date
E

Evan Rosenbaum

I am using FrontPage2002 and have created a form through FrontPage. After I
created the form I had FrontPage create and write to a Access Database. I am
having an issue that I need to pass a field from the form to another page to
appear in the body of an email. I can not get any variable to pass to
another page from this page. It appears that FrontPage is controlling the
page and will not do anything bu write to the database. Any suggestions.

Thanks
Evan
 
-----Original Message-----
I am using FrontPage2002 and have created a form through
FrontPage. After I created the form I had FrontPage
create and write to a Access Database. I am having an
issue that I need to pass a field from the form to
another page to appear in the body of an email. I can
not get any variable to pass to another page from this
page. It appears that FrontPage is controlling the
page and will not do anything bu write to the database.
Any suggestions.

If you inobtrusively add a statement like:

<%Session("product") = Request("product")%>

to your Save Results page (i.e. right after the <body>
tag) that should save the "product" form field in
the "product" session variable.

Another ASP page in the same application could then
retrieve the "product" data via Session("product"). For
example:

<textarea>Thank you for taking an interest in
<%=Session("product")%>.</textarea>

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top