from a parameter to a hidden field

T

Tim Thorp

I have a FP2002 / Access2002 web app and in it I pass the eventID from a
list of events through a hyperlink to a registration form on which I display
details of the selected event and then a form in which users enter name and
email and click submit to register.
The problem I have is that the registration table has eventID, name and
email fields and I need all 3, but I cannot seem to get the eventID to work.
I tried adding a hidden field to the form and entering name=eventID
value=eventID and then "mapped" the field in form options, but am still not
having luck

Thanks in advance!

Tim
 
M

MD WebsUnlimited.com

Hi Tim,

So what you're saying is that you have a page that is referenced using
something like:

<a href="registrationform.htm?eventID=xyx >Register for this event</a> With
xyz being the event ID and you now wish to get the eventID into the
registration form.

If the registration form is an HTML page as shown then you'll need to use
JavaScript to parse the location object to get the parameters and store the
value of eventID into the hidden form field.

If the registration form is an ASP page, not shown, you'd then use

<input type="hidden" name="eventID" value="<%
=request.querystring("eventID") %>" >

So which is it ASP or HTML?
 
T

Tim Thorp

It's ASP and the tag I used says <input type="hidden" name="eventID"
value="<%=FP_FieldVal(fp_rs,"eventID")%>">
Some more info:
I have a FP2002 / Access2002 asp web app. in which I pass the [eventID] from
a
list of events through a hyperlink to a registration form
ex:"register.asp?eventID=2"on which I display
details of the selected event (from DRW) and then a form in which users
enter name,
email and click submit to register. Which returns a thanks.asp page where I
would like to list the details of the event one more time (using DRW).


The eventID and details are displayed fine on the page, but are just not
getting into the hidden field. I realized that the "this is the end of the
database results region" needs to be below the hidden field in order for it
to populate, but am still having a hard time doing this.

Thanks very much for the help - I put in a good word to mvpga for you.
 
T

Tim Thorp

I just found out that the trick is the order in which you do things. You
have to first create a form and then configure the form in the form
properties window. Then you add the database results *inside the form* then
you move the end of the database results under the end of the form and it
works.
If anyone is reading this, after my form is submitted, how do I display what
the user registered for? When I do DRW on reg_thanks.asp with the criteria
eventID = eventID, I run into problems with the page and the problem seems
to be that the eventID is not being passed to the reg_thanks.asp page from
the form.

Any tips are appreciated!

Tim

Tim Thorp said:
It's ASP and the tag I used says <input type="hidden" name="eventID"
value="<%=FP_FieldVal(fp_rs,"eventID")%>">
Some more info:
I have a FP2002 / Access2002 asp web app. in which I pass the [eventID] from
a
list of events through a hyperlink to a registration form
ex:"register.asp?eventID=2"on which I display
details of the selected event (from DRW) and then a form in which users
enter name,
email and click submit to register. Which returns a thanks.asp page where I
would like to list the details of the event one more time (using DRW).


The eventID and details are displayed fine on the page, but are just not
getting into the hidden field. I realized that the "this is the end of the
database results region" needs to be below the hidden field in order for it
to populate, but am still having a hard time doing this.

Thanks very much for the help - I put in a good word to mvpga for you.

MD WebsUnlimited.com said:
Hi Tim,

So what you're saying is that you have a page that is referenced using
something like:

<a href="registrationform.htm?eventID=xyx >Register for this event</a> With
xyz being the event ID and you now wish to get the eventID into the
registration form.

If the registration form is an HTML page as shown then you'll need to use
JavaScript to parse the location object to get the parameters and store the
value of eventID into the hidden form field.

If the registration form is an ASP page, not shown, you'd then use

<input type="hidden" name="eventID" value="<%
=request.querystring("eventID") %>" >

So which is it ASP or HTML?
--
Mike -- FrontPage MVP '97-'02
J-Bots Plus 2002 End of Summer Sale You Save $20.00
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
--------------------------------------------------------------------------
--
--------------------
If you think I'm doing a good job, let MS know at [email protected]


name
and still
not
 
Top