How Do I take text from Textarea in Extension

Use this forum to ask questions about how to do things with my MediaWiki Extensions.
Post Reply
User avatar
vitiucha
Rank 0
Rank 0
Posts: 2
Joined: April 3rd, 2010, 2:50 pm

How Do I take text from Textarea in Extension

Post by vitiucha »

Hi, I'm creating new extension.

In the page I create input form to new wiki page (Wiki page name) and second form (textarea) and then submit button.

The I press button, MediaWiki create new page with my typed name.
The question is, how add my textarea text to new MW page editor? Maybe somebody know any function, o have egzample.

Thanks a lot.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How Do I take text from Textarea in Extension

Post by Paul »

I'm not quite sure what you want to achieve...any detail?
User avatar
vitiucha
Rank 0
Rank 0
Posts: 2
Joined: April 3rd, 2010, 2:50 pm

Re: How Do I take text from Textarea in Extension

Post by vitiucha »

http://vitiucha.puslapiai.lt/VGTU/index ... s_puslapis
Here my extension.

"Enter the title of the page you wish to create:" new page name.
"Additional information" - will be some text.
when i'll press "Create Lecture" button, MediaWiki create page with my new name and in wiki editor must be my additional information (text from textarea) . But how i can do it? something do with post or get?

Cause i looked a lot extensions, but didn't find any ideas.
Post Reply