/    Sign up×
Community /Pin to ProfileBookmark

Hoping that some kind person on here can help me out. This is more of a javascript issue but there are php elements too.

I have a need to register against the CDDB database when I kick off my web app and I need to do this via a javascript function, which I have and works. Right now I am passing my login credentials to the javascript function so that it is visible to anyone that looks at the source code. The javascript function is being called via on_click with the HTML/PHP code.

I really don’t want to pass my login credentials, so how can I get them from within the javascript? My login credentials are stored in a file on the server.

I would appreciate any help on this as I am really not sure how to go about this.

TIA.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@VladdySep 30.2005 — Check your credentials server side. Do not use javascript for any "mission critical" functionality
×

Success!

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