As a follow up to this thread:
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10277810 I was wondering whether anyone could shed some light.
I have a sequence of three includes to one page, each time some vars need to be passed, others are acted upon and new ones set. When we get to the third page, which is the one from which the user sends data to the db all vars appear but the submit var! So, something like this appears on the page from a foreach statemement:
num: 2
newch: chapter 2
title: Cheesy wotsits
What should appear is this:
num: 2
newch: chapter 2
title: Cheesy wotsits
submit: create new section
To prevent untowrd happenings, I generally check for the submit var before doing anything using if (isset()) etc.
Now, the interesting thing I found it is that if I pass a further hidden variable and check for that rather than the submit variable it works.
Frankly, I haven;t a clue why this might be so apart from that there are two forms on the previous page. they do have different submit names and values though.
Any ideas?