/    Sign up×
Community /Pin to ProfileBookmark

Hide email, then pass to form

I have users that are stored in our database, and I don’t want to expose their email address. I have a form that is used to email those users, but I still am not sure how to securely pass the email address from the database, and into a form field, without it being viewable in the code.

Would it be possible to load the page and have it put into a var, and then inserted into a field on submit?

I am new to this, so I am not sure what the best solution to this is.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@cgishackMar 03.2008 — if you are using a Server side program you could always store it in a session variable.

If you are using JavaScript, it will ALWAYS be in the pages source.

Drew
Copy linkTweet thisAlerts:
@felgallMar 04.2008 — Add the email addresses when building the email after the form has been submitted.
×

Success!

Help @nnhubbard 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.19,
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,
)...