Last page visited

S

Sportman7

I have a form which visitors can go to from almost every page on the site.
If they go there and submit the form to me, I would like to know the last
page they visited to get to the form.

Can Frontpage keep this kind of info in some way. In fact, if they submit
the form, is there a way to know what pages they visited (i.e., the route
they took) before deciding to go to the form?

Thanks for any ideas on this,
Mark
 
M

MD Websunlimited

Hi Mark,

You can get the last form by using a server environment variable or using the document object. Once you have the referrer you can
set a hidden form field value to its value for submission with the rest of the form.

<input type="hidden" name="referrer" value="" >

<input type="submit" onclick="this.referrer.value = document.referrer; return true;" >

If you'd like to display document information on the page, please see
http://www.websunlimited.com/wumain/component.asp?page=/general/docinfo.htm
 
S

Sportman7

MD,

Thanks. So it is possible, very cool. Only problem is I am a novice at
this stuff.

Can I do this in FP, or must I go into the html code for the page on which
my form is located?

I am aware of, tho never used hidden fields. I was able to add one named
Referrer to the form, with a beginning value of "None" (FP wonuld not let me
enter a blank).

Not sure how this value would get updated to the page last displayed. Which
environment variable or document object would have this info? Is there a way
in FP (e.g., an onopen event for the page where my form is) to reset this
value to that environment variable?

Sorry for the basic questions, but my skill level is still not that high.

Thanks for any help you can give,
Mark
 
A

Andrew Murray

You can add hidden fields through Form Properties and either "options" or
"advanced" (one or the other).

"(e-mail address removed)_SPAM_AT_ALL"
 

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

Top