[pmwiki-users] This time a disappearing $_POST

Martin Fick mogulguy at yahoo.com
Mon Sep 18 22:05:28 CDT 2006

--- The Editor <editor at fast.st> wrote:
> For some reason, when nextpage is the first form
> field, I get
> F:nextpage V: P: returned to me through the
> Warning() function.  If I
> put datapage first I get what I'm supposed to. 
> F:datapage V:Test.Copy
> P:Test.Copy.  For the life of me I can't figure out
> why
> $_POST[nextpage] keeps returning blank.  I've
> checked everything I can
> think of.
> $HandleActions['data'] = 'Data';
> function Data() {
> 	foreach ($_POST as $field => $value) {
> 	Warning("F:$field V:$value P:$_POST[$field]");
> 	...
> (:input form:)
> (:input hidden "nextpage" Test.Copy2:)
> (:input hidden "datapage" Test.Copy:)
> (:input hidden action data:)
> ...
> Any suggestions you might be able to give would be
> appreciated. I've
> tried double quotes and no double quotes.  I've
> commented out every
> later instance of nextpage in the recipe, and it
> makes no difference.

Well, it's hard to really see what is going on here. 
While brevity is often appreciated, maybe in this
case, post a little more code.  Have you looked at the
html form itself to see how it is formed?  Look at the
hidden fields to see if they are what you expect.  How
are you submitting the form, with a submit button or
image?  What method are you using in the html form,
does it say POST or GET?

Good luck,


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the pmwiki-users mailing list