Support Spidean |
Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.
|
Board Index > Support > PostWrap Accessing POST varibles
Caffeine_Pill
Newbie   Posts: 2 Registered: 1/19/2003 Status: Offline
|
posted on 2/1/2003 at 05:26 PM |
Short version:
I am including a file in my center block with a slightly modified version
of PostWrap. This file has a form. It posts. When I open the second
page, this one is also an include, to process those variables - it can't
access $HTTP_POST_VARS. It thinks it's empty. Any thoughts as to why my
variables aren't posting?
Long version:
This is a modified version of PostWrap. I didn't want to use iFrames, so I
modified it as follows:
code:
echo "\n\n<!-- Begin PostWrap Content -->\n";
include ("$page");
echo "<!-- End PostWrap Content -->\n\n";
So the page is simply being included in its entirity. Then I created 2
pages. They are contact.php and docontact.php. I can access them both
through the site using:
code:
modules.php?op=modload&name=PostWrap&file=index&page=Contact
modules.php?op=modload&name=PostWrap&file=index&page=doContact<
br />
So I know that PostWrap is working fine. contact.php has the following
form:
code:
<form
action="modules.php?
op=modload&
name=PostWrap&
file=index&
page=doContact"
method="post"
>
When I hit my submit button, things go through fine and it loads the page
doContact.php. In doContat.php though, the following:
code:
if ($HTTP_POST_VARS) {
echo $HTTP_POST_VARS["from"];
}
Returns nothing. To see if it was PostNuke causing problems, I modified
the form parameters of contact.php so that it pointed to docontact.php and
accessed the page directly. Accessing it directly,
(www.mysite.com/contact.php) and submitting the form works fine. So
somehow submitting this form in this way (through PostWrap & PostNuke)
is either nulling the var $HTTP_POST_VARS, or those values aren't posting.
Any comments?
Thanks in advance for any help.
[Edited on 1/2/2003 by Caffeine_Pill]
[Edited on 1/2/2003 by Caffeine_Pill] |
| |
| |
shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Offline
|
posted on 2/6/2003 at 06:36 PM |
In your form example, I don't think you can include all of those vars in
the action. Try setting the action="modules.php" and pass the vars (i.e.
op="modload") as hidden.
-Shawn |
| |
|
|
|
|