Hello,
I'm having a problem with posting/retrieving arguments via GET method. How can I postpone few arguments? How can I retrieve them?
With POST method I use to do it like that: $action = $wgTitle->escapeLocalURL(); <form action='$action' method='post'> <input type='hidden' name='hidd' value='testing1'> <input type='submit' name='test' value='test'> </form>
When I want to retrieve an argument 'hidd' value, I just type: $retrieved_argument = $wgRequest->getText( 'hidd' );
That's it. Can you help me with GET method ?
Borut
I have found the solution. I have always ask, if something was posted: if ( $wgRequest->wasPosted() ) {} But cos of GET method, there was nothing to post....
Borut
-----Original Message----- From: Borut Tomažin [mailto:debijan@gmail.com] Sent: Tuesday, July 25, 2006 8:25 PM To: 'MediaWiki announcements and site admin list' Subject: [Mediawiki-l] GET method ?
Hello,
I'm having a problem with posting/retrieving arguments via GET method. How can I postpone few arguments? How can I retrieve them?
With POST method I use to do it like that: $action = $wgTitle->escapeLocalURL();
<form action='$action' method='post'> <input type='hidden' name='hidd' value='testing1'> <input type='submit' name='test' value='test'> </form>
When I want to retrieve an argument 'hidd' value, I just type: $retrieved_argument = $wgRequest->getText( 'hidd' );
That's it. Can you help me with GET method ?
Borut
mediawiki-l@lists.wikimedia.org