Viruthagiri 0 Light Poster

I need help.

Please check this code

This is the snapshot of what the form look like now.

http://s.wordpress.org/extend/plugins/qa/screenshot-1.jpg

I would like to add some extra fields under the description form.

I think i need to edit the_question_form() function in this file.

I need to add some extra fields below this textarea.

line number 375.

<textarea name="question_content"><?php echo esc_textarea( $question->post_content ); ?></textarea>

I want to add a custom image upload button below that textarea. I added

enctype="multipart/form-data"

tag in the form. I also added this code.

<input type="file" name="image">

Now can anyone tell me how to store this image file in the database and how to retrieve it in the content page?

Please i'm really in need of help. So i appreciate everyone who try to help me. Thanks everyone.

PS: This is a page in my theme where user submit their content, NOT admin area.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.