Hello,
I want to know how can I use the GET method when posting forms?
With the POST method is everything clear, but this is strange.
Firstly, how can I pas a variable ?
Secondly, how can I retrieve it after submit ?
Lp
On 06/07/06, Borut Tomažin debijan@gmail.com wrote:
I want to know how can I use the GET method when posting forms?
Your question is either
1. "How do I use the GET method with forms in general" 2. "How can I access GET data from within MediaWiki"
Answers:
1. Simple, but I'd recommend checking a quick HTML reference. When the form method is GET, then the input is spewed into the URL. 2. Look at the WebRequest object...there's a global $wgRequest available
Rob Church
Ok, here is the problem. I know all this stuff about forms because I'm programming in PHP for a while. But here this is strange. With the POST method is simple. All I need is to parse out variables with $wgRequest method.
Now the GET method: First: How can I send required data, just put it in the end of url like .../username=name (I think there is no questionmark) Second: How can I parse those parameters out, the same with $wgRequest method ?
Lp
-----Original Message----- From: Rob Church [mailto:robchur@gmail.com] Sent: Thursday, July 06, 2006 4:42 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] How to use GET method ?
On 06/07/06, Borut Tomažin debijan@gmail.com wrote:
I want to know how can I use the GET method when posting forms?
Your question is either
- "How do I use the GET method with forms in general"
- "How can I access GET data from within MediaWiki"
Answers:
- Simple, but I'd recommend checking a quick HTML reference. When the
form method is GET, then the input is spewed into the URL. 2. Look at the WebRequest object...there's a global $wgRequest available
Rob Church
mediawiki-l@lists.wikimedia.org