Dave001238

Anonymous
Hello!

I just upgraded to 1.3.10rc2 from 1.3.9sr2 and have found that posting PHP form variables between staticpages no longer works

Is this is a security fix that is effecting me? or perhaps I've done something wrong?

Thanks for any clarification.

Dave

PS I've been meaning to just create regular pages out of mini-application and take them out of the staticpages, so this is the incentive I needed, but I'm curious more than anything.

Dave001238

Anonymous
confused
Okay, so I'm finding out very fast that I don't know how to do this thing as a plugin and am starting to panick, seriously, as these pages get used and I need to have them working in one way or another FAST!!

PLEASE, can someone please tell me if I'm going to be able to post variables across staticpages or if I'm completely screwed now and have to go back to 1.3.9??!

Extra good karma to the person who speaks up first and prevents me from jumping off this bridge.

Thanks. Dave.

Dave001238

Anonymous
Sorry for the triple post here

So, I've given up for the time being and have gone back to 1.3.9.

Can someone still answer my question though?

To be crystal clear, I have a couple of static pages. One has a form and collects user preferences and passes them off to the second page which returns results from a database.

In 1.3.9 this works great by simply using action="titleofpagethatdoesaction" - as soon as I upgraded to 1.3.10, nothing works. No errors, just nothing gets passed.

Now, I do realize that this isn't the best way of doing things, etc, etc. But it's how I am doing it right now until I can figure out the whole complicated mess of creating a whole plug in for this one little task.

Help, please and thank you

Dave

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by Dave001238: Is this is a security fix that is effecting me?

No, it's an unintended side effect of some code reorganisation in the static pages plugin.

You'll have to declare $HTTP_POST_VARS (or $_POST or whatever you're using) as global now, as your code is called from within a function where those are not declared as being global.

Quote by Dave001238: I need to have them working in one way or another FAST!!


To quote myself:
Quote by Dirk: As usual, please keep in mind that this is not the final version yet but only a Release Candidate. So if your life (or your income) depends on your Geeklog site, don't install it just yet.


Quote by Dave001238: until I can figure out the whole complicated mess of creating a whole plug in for this one little task.

  1. Plugins aren't that hard to write - you only have to implement what you really need.
  2. An easier way would probably be to simply wrap your form in Geeklog's framework, which requires a total of 5 lines of PHP.

bye, Dirk

Dave001238

Anonymous
Awesome! THANK YOU!! I'm sorry for being so newb

I would have held off on upgrading, but I've done it successfully on a couple of other sites without any issues so figured I could get away with it since I like the auto-archiving features so much. It was easy to roll back and now I can concentrate of making my plugin work *before* I try the upgrade (even though I could easily work around it now).

I know plugin's shouldn't be that hard to do and I know I'll figure it out. I just started to panick this morning when I posted this because I had sleep dep and brain blockage. But enough blabbering.

Dirk, you may have heard this before, but YOU'RE THE MAN.

- Dave