Hi Watts,
Found your Multipage Mod and it's just the ticket. I have adapted it to make a 7 page form. Everything is okay except that when adding or modifying a record it jumps from page 1 to 2, skips 3, jumps to 4, skips 5, jumps to 6, then to page 7.
As far as I can see this is what is happening:
Add record: Goes to page 1. The if ($in{'add_form'}) routine under page one then sets Page Status to 2 and you then proceed to modify_form from there on. Provided Meta tag for Page Status is set to 2 under the html_add_success subroutine then you do indeed go to page 2.
I have added to the if routines under html_modify_success for pages 1 through 7, in each case setting Page Status to next page
e.g.: if ($in{'PageStatus'} eq "2") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=3&ID=$in{'ID'}">
|;}
....
if ($in{'PageStatus'} eq "6") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=7&ID=$in{'ID'}">
|;}
if ($in{'PageStatus'} eq "7") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=7&ID=$in{'ID'}">
|;}
if ($in{'PageStatus'} eq "Done") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url">
|;}
However, alas
it always jumps 2 pages. (If you set Meta tag for Page Status to 3 under the html_add_success subroutine then you go from page 1 - 3 - 5 - 7).
Can you please help me?
My thanks in advance
Andy J
Found your Multipage Mod and it's just the ticket. I have adapted it to make a 7 page form. Everything is okay except that when adding or modifying a record it jumps from page 1 to 2, skips 3, jumps to 4, skips 5, jumps to 6, then to page 7.
As far as I can see this is what is happening:
Add record: Goes to page 1. The if ($in{'add_form'}) routine under page one then sets Page Status to 2 and you then proceed to modify_form from there on. Provided Meta tag for Page Status is set to 2 under the html_add_success subroutine then you do indeed go to page 2.
I have added to the if routines under html_modify_success for pages 1 through 7, in each case setting Page Status to next page
e.g.: if ($in{'PageStatus'} eq "2") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=3&ID=$in{'ID'}">
|;}
....
if ($in{'PageStatus'} eq "6") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=7&ID=$in{'ID'}">
|;}
if ($in{'PageStatus'} eq "7") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url&modify_form=1&PageStatus=7&ID=$in{'ID'}">
|;}
if ($in{'PageStatus'} eq "Done") {print qq|
<meta http-equiv = refresh content = "0; URL=$db_script_link_url">
|;}
However, alas

Can you please help me?
My thanks in advance
Andy J