Q: Trying to reuse Form on several pages, with different Form Prop

M

Mr. Analogy

I've got a survey that users fill out with thier contact info, addr, etc.

We use it for several things (contacting us for info, downloading a trial,
requesting a catalog). In each instance, the page we redirect them to is
different. (I.e., if downloading a trial, we show them the "downloads" page,
if req catalog we show them "your catalog will arrive in 1 week", etc.)


So... now we've got 4 copies of the survey. I want to unifiy them so we have
ONE copy. But each survey form needs different survey variables. Namely, the
"next_url" needs to be diferent.

One way I'm thinking of doing this is to have:

Page

<Form>
< include=Part_of_form //this will have all the text fields,
etc.>

</Form>

However, this doesn't seem to be working. When I preview locally, it's
fine. But when uploaded, it shows just the text of the Include command, not
the page that should be included.

Any suggestions?
 
P

p c

Not sure I understand it?
1. Are all form fields the same expt for the form name?

2. Or MOST form fields are the same?

3. Also, are all current forms postibg to the same page?

4. Do you want to consolidate to a fingel page single form? Or to sever
pages that inluded (re-use) html code

For number 4, if your server supporst sever site inludes you can do this
(in psei dode )

[begining form]
[some form code]
<!--#include file="somefile"-->
[some form code]
[end of form]

...PC
 
M

Mr. Analogy

p c said:
Not sure I understand it?
1. Are all form fields the same expt for the form name?
No. Several of the form properties are different (namely : NextUrl).
2. Or MOST form fields are the same? Yes.


3. Also, are all current forms postibg to the same page?
Yes. They post to an .asp page that processes the survey and does some
massaging of the submitted data.

4. Do you want to consolidate to a fingel page single form? Or to sever
pages that inluded (re-use) html code

I'd prefer not to use a server page, merely because the current page is .htm
and I hate changing the names of pages (someone somewhere might refer
directly to it).

For number 4, if your server supporst sever site inludes you can do this
(in psei dode )

That's what I tried and it didn't work. Instead of hte include page showing
up, the command to include the page showed up. I'll try it again. Thought
maybe there was a problem including in the middle of a Form.


[begining form]
[some form code]
<!--#include file="somefile"-->
[some form code]
[end of form]

...PC


Mr. Analogy said:
I've got a survey that users fill out with thier contact info, addr, etc.

We use it for several things (contacting us for info, downloading a trial,
requesting a catalog). In each instance, the page we redirect them to is
different. (I.e., if downloading a trial, we show them the "downloads" page,
if req catalog we show them "your catalog will arrive in 1 week", etc.)


So... now we've got 4 copies of the survey. I want to unifiy them so we have
ONE copy. But each survey form needs different survey variables. Namely, the
"next_url" needs to be diferent.

One way I'm thinking of doing this is to have:

Page

<Form>
< include=Part_of_form //this will have all the text fields,
etc.>

</Form>

However, this doesn't seem to be working. When I preview locally, it's
fine. But when uploaded, it shows just the text of the Include command, not
the page that should be included.

Any suggestions?
 
M

Mr. Analogy

OK, I think I figured this out. Thanks for the nudge. The soln you suggested
was what I was doing, but I thought maybe that was impossible (including a
page within a form).

I think the issue is this:

If you have Include.htm included in B.htm and you change Include.htm, you
have to upload Include.htm before B.htm will work. (At least that's what
happened in my test.

I'll report back only if option #4 does NOT work.

Thanks!


p c said:
Not sure I understand it?
1. Are all form fields the same expt for the form name?

2. Or MOST form fields are the same?

3. Also, are all current forms postibg to the same page?

4. Do you want to consolidate to a fingel page single form? Or to sever
pages that inluded (re-use) html code

For number 4, if your server supporst sever site inludes you can do this
(in psei dode )

[begining form]
[some form code]
<!--#include file="somefile"-->
[some form code]
[end of form]

...PC


Mr. Analogy said:
I've got a survey that users fill out with thier contact info, addr, etc.

We use it for several things (contacting us for info, downloading a trial,
requesting a catalog). In each instance, the page we redirect them to is
different. (I.e., if downloading a trial, we show them the "downloads" page,
if req catalog we show them "your catalog will arrive in 1 week", etc.)


So... now we've got 4 copies of the survey. I want to unifiy them so we have
ONE copy. But each survey form needs different survey variables. Namely, the
"next_url" needs to be diferent.

One way I'm thinking of doing this is to have:

Page

<Form>
< include=Part_of_form //this will have all the text fields,
etc.>

</Form>

However, this doesn't seem to be working. When I preview locally, it's
fine. But when uploaded, it shows just the text of the Include command, not
the page that should be included.

Any suggestions?
 
Top