tomdackins
Badges: 3
Rep:
?
#1
Report Thread starter 4 weeks ago
#1
it says i have to sanatise my varialble but i dont know how.
https://prnt.sc/tb188j
0
reply
tomdackins
Badges: 3
Rep:
?
#2
Report Thread starter 4 weeks ago
#2
it is meant to say activation but I was rushing
0
reply
tinyminy13
Badges: 11
Rep:
?
#3
Report 4 weeks ago
#3
(Original post by tomdackins)
it says i have to sanatise my varialble but i dont know how.
https://prnt.sc/tb188j
The answer to sanitise the variable before it gets inserted into the database should be:

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

You only need to replace the first line with the escape_tags variable and replace $message to $myFormData.
Hope this helps!

P.S. I have also sent a screenshot of what it should look like.
0
reply
tomdackins
Badges: 3
Rep:
?
#4
Report Thread starter 4 weeks ago
#4
Thank you!!!!
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

What are you most likely to do if you don't get the grades you were expecting?

Go through Clearing (67)
41.36%
Take autumn exams (54)
33.33%
Look for a job (4)
2.47%
Consider an apprenticeship (5)
3.09%
Take a year out (22)
13.58%
Something else (let us know in the thread!) (10)
6.17%

Watched Threads

View All