New Zenner
- Join Date:
- Mar 2009
- Posts:
- 78
- Plugin Contributions:
- 0
PHP inside ezpages
I think this piece of code in the header of the ez pages (includes/modules/pages/page/) is what is sending the form back to the index page of my gallery.
$ezpage_id = (int)$_GET['id'];
if ($ezpage_id == 0) zen_redirect(zen_href_link(FILENAME_DEFAULT));
It seems that, since the ez page id is not being passed from the form, it is being set to 0, and therefore re-directing to the default page. (a whole lot of guessing from a fledgling phper) If I can just figure out how to pass the ez page id, I might have this solved.
Otherwise, I will have to resort to setting this up outside the ezpage, as Dr. Byte has suggested (I'm reluctant to give up because I've spent days on this. Insert smiley here.)
All input is much appreciated.
Bill