The Student Room Group

Silver iDEA Citizen badge part two

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)

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?
I'm stuck on the same bit if you have the answer?
anyone find out the answers?
i am clueless to i came here for help
Reply 5
did you get the answer been stuck for ages ?
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
Original post by TDARKZY9
yes replace it with the escape_tags and it should work

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

Hope this helps :smile:
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
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!
the answers $myFormData = escape_tags($myFormData);insertIntoDatabase($myFormData);
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?
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.

Quick Reply

Latest

Trending

Trending