Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6360051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:35:55+00:00 2026-05-24T23:35:55+00:00

i am using my own mvc framework and i want to filter and escape

  • 0

i am using my own mvc framework and i want to filter and escape all of the input and out put automatically. How do I?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:35:55+00:00Added an answer on May 24, 2026 at 11:35 pm

    Create a function which filters the data as you want. Then at the very beginning you put this code:

    array_map('your_filter_function', $_REQUEST);
    

    Alternatively you can create a class which wraps the post and get super globals. If I want to get a post variable in Codeigniter, for example, I do this:

    $post_var = $this->input->post('key');
    

    And the function post could if you wanted to filter the value before it retrieves it (return your_filter_function($_POST[‘key’]));

    Escaping output would be done by adding this feature to your database layer, or other sources of output.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating my own script using the CodeIgniter MVC framework. Now, i want users
Im using Preview 2 of the ASP .NET MVC Framework. Im trying out DataAnnotation
I'm new to using an MVC structure, and am developing my own MVC framework
I am using my own MVC implementation and I am not sure, whether the
I traverse a 16x16 maze using my own A* implementation. All is well. However,
I want to use a javascript framework with MVC for a complex web application
I'm using ASP.NET MVC 3 with Entity Framework 4. When a user logs in,
I am using the CodeIgniter MVC framework. This framework contains the option to log
I am developing a medium sized ASP.NET project using ASP.NET MVC and Entity Framework.
I have been developing my own PHP MVC framework. Now I have seen different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.