Title: Empty question gets submitted
Last modified: November 18, 2016

---

# Empty question gets submitted

 *  [joydipkar73](https://wordpress.org/support/users/joydipkar73/)
 * (@joydipkar73)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/empty-question-gets-submitted/)
 * Empty question gets submitted.
    I did it by editing ur plugin if(0>= strip_tags(
   trim($_POST[“submitted q”]))){ //throw error
 * }
 * …. but when i updated the plugin few days back all gone…!
    would u pls take a
   look at that?
    -  This topic was modified 9 years, 5 months ago by [joydipkar73](https://wordpress.org/support/users/joydipkar73/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [joydipkar73](https://wordpress.org/support/users/joydipkar73/)
 * (@joydipkar73)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/empty-question-gets-submitted/#post-8459506)
 * sorry, the above code would be
 * if(0>= strlen(trim(strip_tags(trim($_POST[“submitted q”]))))){
    //throw error
 * }
 *  Plugin Author [DesignWall](https://wordpress.org/support/users/designwall/)
 * (@designwall)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/empty-question-gets-submitted/#post-8472546)
 * Hi, Thanks for contacting DesignWall,
 * Please open the file wp-content/plugins/dwqa-question-answer/inc/Handle.php
 * And add the following code under the line 297:
 * if(0>= strlen(trim(strip_tags(trim($_POST[“submitted q”]))))){
    dwqa_add_notice(
   __( ‘Your notification’, ‘dwqa’ ), ‘error’ ); return false; }
 * If you need further assistances, please feel free to reach out.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Empty question gets submitted’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dw-question-answer_fefdf9.svg)
 * [DW Question & Answer](https://wordpress.org/plugins/dw-question-answer/)
 * [Support Threads](https://wordpress.org/support/plugin/dw-question-answer/)
 * [Active Topics](https://wordpress.org/support/plugin/dw-question-answer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dw-question-answer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dw-question-answer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [DesignWall](https://wordpress.org/support/users/designwall/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/empty-question-gets-submitted/#post-8472546)
 * Status: not resolved