/    Sign up×
Community /Pin to ProfileBookmark

What Other Functions Left That Deal With User Submitted Data Secure Output ?

Hi,

I am learning all the ways to securely output user submitted data, be they links or html or plain text or any programming language’s code.
To securely output user html codes on our pages, we use htmlentities() and htmlspecialchars().

QA.
To output securely user submitted urls (user submitted urls with no html anchor tag) **by creating a hyperlink** to the url, we use which php functions ? rawurlencode() for the url path, urlencode() and int() for the query_string **_‘value’_** outputs. What-about int_val() ? Any other functions ?

I ask because I got to look into these functions so I can output to my pages visitor/user/commenter submitted urls, links, html codes, css codes, programming codes (php, python, etc.).

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@novice2022authorJun 06.2022 — QB.

And my outputting pages will have Social Share buttons and so user submitted codes (data) must be securely shared. So, which php functions to look into to do that aswell ?
×

Success!

Help @novice2022 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...