Linking frontpage forms

G

Guest

Hi there. I have set up a questionnaire in frontpage forms. But my
questionnaire is too long to be a 'single' page. So, I wanted to devide it
into different pages. But I don't know how to link this pages AND at the same
time have the responses from ALL of the pages when my site visitors click
'submit' at the end of the last page.

Can someone please tel me how I should devide my from into different
pages(where site visitors can navigate by clicking 'next') and have the
filled results from all pages?

Thanks
 
G

Guest

How many questions do you have in all?

Are any of them long answer (i.e. text area boxes?)

Are you saving your form results to a file, to mail, or to a database?

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
G

Guest

My Qs are a bit many. About 15 Qs overall but with lots ot options. It is
simple awfully long to live them on one page

I don't have many text boxes, most of the answers are 'click' option

I am saving my results in a file
 
G

Guest

On the first form page, right-click the form and choose Properties. Then,
select Send To Other and click Options.

In the resulting dialog box, set Action to the URL of your second form, and
Method to GET.

Now open the second form and add the following script to the <head> section.

<script>
function qsobj (){
var qvbl;
var qstring = "" + document.location.search.substring(1);
if (qstring != ""){
var qpairs = qstring.split("&");
for (i=0; i < qpairs.length; i++) {
qvbl = qpairs.split("=");
this["" + qvbl[0]] = unescape(qvbl[1].replace("+"," "));
}
}
}
function getqsvar(qsvar){
if (qstr[qsvar] == null){
return "";
}else{
return qstr[qsvar];
}
}
var qstr = new qsobj();

function initForm()
{
document.forms[0].C1.value = getqsvar("C1");
document.forms[0].T1.value = getqsvar("T1");
}
</script>

Note the two statements:
document.forms[0].C1.value = getqsvar("C1");
document.forms[0].T1.value = getqsvar("T1");
You need to modify/duplicate these once for each form field on the first
page. For example, if the first page contains four fields named custname,
address, city, and state, code:
document.forms[0].custname.value = getqsvar("custname");
document.forms[0].address.value = getqsvar("address");
document.forms[0].city.value = getqsvar("city");
document.forms[0].state.value = getqsvar("state");

Next, add an onload= attribute to the <body> tag like this.

<body onload="initForm();">

Finally, for each field on the first Web page, add a hidden form field like
ones below to the form on the second page:

<input type="hidden" name="custname" value="">
<input type="hidden" name="address" value="">
<input type="hidden" name="city" value="">
<input type="hidden" name="state" value="">

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 

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