Hey guys im blind here...
Im sending data to the controller to be processed... It works... except when a send two types of words... they are <script> and <scripting>
Example:
Input 1: <javascript>
Input 2: <js>
click SUBMIT (retuns no problem)
Array
(
[answers] => Array
(
[0] => Array
(
[answer] => <javascript>
[points_answer] => 0
)
[1] => Array
(
[answer] => <js>
[points_answer] => 0
)
)
)
Now when I add:
Example:
Input 1: <javascript>
Input 2: <js>
Input 3: <script> or <scripting>
Click Submit : AND BLANK! I try error reporting, var_dump, bla bla bla... NOTHING shows up, unless I remove from the input <script> or <scripting> and submit again... no issue...
I reading the info like this :
for ($y = $new_awnser; $y <= $answers_count; $y++) {
$answer[] = array(
'answer' => htmlentities($_POST['answer'][$y]),
'points_answer' => $_POST['points'][$y]
);
}
THe post does send data:
quizname JavaScript Quiz
description Test your Javascript knowledge
file_upload
image 1320671019-image3[1].png
id[] 32
name[] dasdas
from[] 21
to[] 213
descriptionn[] dasdsad
outcome_count 1
question[] Inside which HTML element do we put the JavaScript?
answer[] <javascript>
points[] 32
answer[] fsdfsd
points[] 43
answer[] <scripting>
points[] 42
answers_count[] 2
questions_count 0
publish 0