The Student Room Group

Scroll to see replies

Reply 1

Original post by immiestar88
I need help with the Citizen fortification badge bit. It says to pass the variable through escape tags and to sanitise the variable. I have put this but i dont know whats wrong with it:

$myFormData = $_POST['comments'];
$myFormData=escape_tags($myFormData)i
insertIntoDatabase($myFormData)

Did you get the answer?

Reply 2

I'm stuck on the same bit if you have the answer?

Reply 3

anyone find out the answers?

Reply 4

i am clueless to i came here for help

Reply 5

did you get the answer been stuck for ages ?

Reply 6

Original post by Tia.211
did you get the answer been stuck for ages ?

you have to replace the first line with the escape tag variable. Hope this helps :smile:

Reply 7

Original post by peachy.x.grace
you have to replace the first line with the escape tag variable. Hope this helps :smile:

Thank you

Reply 8

it didnt work

Reply 9

yes replace it with the escape_tags and it should work

Reply 10

Original post by TDARKZY9
yes replace it with the escape_tags and it should work

not

Reply 11

the answer is
$myFormData = escape_tags($myFormData);
insertIntoDatabase($myFormData);

Hope this helps :smile:

Reply 12

Well first of there is a space here-------v$myFormData=escape_tags($myFormD ata)Isecond it should look like this: $myFormData = escape_tags($myFormData)i

Reply 13

Original post by RoseLili.violet
the answer is
$myFormData = escape_tags($myFormData);
insertIntoDatabase($myFormData);

Hope this helps :smile:

i tried to do that but nothing worked can someone just tell me what to type in there as i am having problems with this and cant find out the answer for ages... if anyone help me then thank you <3
P.S.
i were stuck with this for nearly over a year
P.S.S
SERIOUSLY!

Reply 14

the answers $myFormData = escape_tags($myFormData);insertIntoDatabase($myFormData);

Reply 15

Attachment not found

Please help me I am stuck on this bit.
Thank you :smile:

Reply 16

Original post by lucyw0338
the answers $myFormData = escape_tags($myFormData);insertIntoDatabase($myFormData);

thanks

Reply 17

how do you do the next bit?

Reply 18

Original post by RoseLili.violet
the answer is
$myFormData = escape_tags($myFormData);
insertIntoDatabase($myFormData);

Hope this helps :smile:

thanks this is coorect

Reply 19

Original post by Riadosani
thanks this is coorect

Hi. I have the same problem on the iDEA Silver The Digital Citizen Activation. What is the correct input? Please help in anyway. Thanks.