470,612 Members | 2,194 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,612 developers. It's quick & easy.

Trouble retrieving value with request.form

I am trying to present a list of links on a page (Form) where each link
opens a different picture gallery. I have the Form page which contains the
links, a Gallery page, and several include files. Each include file displays
a different gallery.
Clicking on a link submits a value identifying the chosen gallery to the
Gallery page. The Gallery page accepts the value from the Form page and uses
it to call the appropriate include file.
The Post seems to have worked, the problem seems to be in retrieving the
value. The provided code for "gallery.asp" fails to execute properly- even
the line that displays "Test". I just can't seem to spot the error. Any

<div id="Menu">
<script language=javascript>
document.write('<form name="frmGallery" method="post"
document.write('<input type="hidden" name="GalName">');
tGall('Garden City', '2003REG-GrdnCity.inc');
tGall('River Hts', '2003REG-RvrHts.inc');

function tGall(sGalName,sGalFile) {
var sJava = 'javascript:getGallery("' + sGalFile + '")';
document.write('<a href=' + sJava + '>' + sGalName + '</a><br>');

function getGallery ( SelectedGal ) {
document.frmGallery.GalName.value = SelectedGal ;
document.frmGallery.submit() ;

<script language=javascript>
var sName = request.form("GalName");

- -
Chris Shipley
Jul 19 '05 #1
1 1637
> document.write('<input type="hidden" name="GalName">');

You realize this doesn't have a value, right?
<script language=javascript>
var sName = request.form("GalName");

Client-side code doesn't know what Request.Form is. Aren't you getting an
error on this (object required or object expected)? Maybe you meant:


Aaron Bertrand
SQL Server MVP
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Daniel Walzenbach | last post: by
10 posts views Thread by Girish | last post: by
2 posts views Thread by Roshawn | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.