Rob Church <robchur(a)gmail.com> wrote: On 23/08/06, Chris Bruyere wrote:
HI All.
I've been trying to get information from a html form.
The $_POST variable is always empty.
Am I doing something wrong?
An HTML form where? Assuming a scope of MediaWiki, is this from an
extension; a special page, etc? If that's the case, something like
global $wgRequest;
$foo = $wgRequest->getText( 'foo' );
should do the trick. See also various other WebRequest functions for
grabbing integers, seeing if checkboxes were passed, etc.
If *not*, then can we have further information? Thanks,
Rob Church
Hi.
Thanks for the reply.
So, this is what I'm doing:
- I'm trying to 'extend' mediawiki with my own app.
- I have a table in the db that holds my extra info.
- when a user edits a page, they have the ability to edit 'my' extra data as
well.
- I was planning on doing this through forms. So, in the edit page, there are a couple of
textboxes, etc.
-when the user clicks "Save", i want to be able to access the data in the text
boxes.
I've notice that the text area in the edit page, as well as the two buttons are form,
using post as the method.
So, I figured my extra functionality would piggy back of what is already there.
However, when I try to access the $_POST variable it is empty.
So far, I have not been able to figure out where/how the data from the user is processed.
Hence, this posting
Thanks again!
Chris
---------------------------------
All new Yahoo! Mail
---------------------------------
Get news delivered. Enjoy RSS feeds right on your Mail page.