Reference to Parent page

A

Alain

Hi,

Using FP 2003 on a server with FP extensions.

At the bottom of several pages, I include a form to allow visitors to
send comments and suggestions. Same form is included on all pages.

I want the form, when submitted, to identifiy the page where it was
included (by name or otherwise). Form could be submitted through a FP
component or through a PHP page.

How can I reference the page from where the form was submitted?

Thanks.

Alain
 
C

Chris Leeds, MVP-FrontPage

it's not something inherent to FrontPage's form handler, but generally
you'll want to add a hidden form field, filled (using scripting) with the
scriptname. then on the page the form submits to you'll request the
scriptname from that hidden form field and write it into the body of the
email or save it to a file.

HTH

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
A

Alain

Hi Chris,

Thanks for your answer.

Ok to add a field ;
Ok to request a field value and send it in the body of an email

The field name in the included file is: SourcePage, a text type input box.

....but this I don't understand: «filled (using scripting) with the
scriptname»
How do I refer to a form field (in the included file) from the parent page?
OR
How do I refer to a parent page's property in the included file?

....and then set the value of a form field?

Maybe another design altogether might do better: I just want to know
from which page the suggestion was made.

Thanks again; hope to hear from you soon.

Alain

Récemment, Chris Leeds, MVP-FrontPage a écrit:
 
T

Thomas A. Rowe

You would have to use ASP, PHP, etc. to capture the filename of the page the form was accessed from
and pass that as a hidden form field value.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Thomas A. Rowe

FYI: All pages must be .asp or .php or whatever server-side script language.

This may also be possible to do with JavaScript client side.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
A

Alain

Thanks to both of you.

It seems better to use a completely different design.
I realised that my pages were in frames so that page name was not valid.

The form now includes, at the top, a drop-down list of all pages where
it may be included.

On each page were form is included, just before the form, I suggest the
name of the selection to be done(Please select xxx in the list box
below). Value of list box is easily retrieved.

Thanks again

Alain

Récemment, Alain a écrit:
 

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