Search found 4 matches

by Papillon
Mon Aug 13, 2007 2:11 pm
Forum: Joombie Coding Q/A
Topic: How to clean array before writing in database?
Replies: 10
Views: 1990

Re: How to clean array before writing in database?

Thank you for the clarification, Joseph. I don't want to accept Html from the form. I only noticed that html is stripped and the rest isn't escaped.
Hence

Code: Select all

$data = JRequest::get( 'post');
is the right thing to me.
by Papillon
Mon Aug 13, 2007 11:53 am
Forum: Joombie Coding Q/A
Topic: How to clean array before writing in database?
Replies: 10
Views: 1990

Re: How to clean array before writing in database?

Hello CirTap,

thank you for the answer and the explication. This helps me a lot.

Greetings
Papi
by Papillon
Mon Aug 13, 2007 7:08 am
Forum: Joombie Coding Q/A
Topic: How to clean array before writing in database?
Replies: 10
Views: 1990

Re: How to clean array before writing in database?

Thank you for your answers! @Amy: I like this ressource very much but I think that some of the parts are especially written for Joomla 1.0. The framework of Joomla 1.5 relieves us some of the work, but I don't know exactly which work in my case. @jlleblanc: I am using in the model some code from web...
by Papillon
Sun Aug 12, 2007 4:25 pm
Forum: Joombie Coding Q/A
Topic: How to clean array before writing in database?
Replies: 10
Views: 1990

How to clean array before writing in database?

Hello, in the model file I get some post data from a form: $data = JRequest::get( 'post' ); In the controller.php I get the model and store it to the database: $model = $this->getModel( 'form' ); if ($model->store())         {             $msg = JTex...