/    Sign up×
Community /Pin to ProfileBookmark

Accessing POST

What would be the proper syntax for accessing vars passed using POST? If it matters I’m passing a var sent thru POST to a function. I hope that makes sense… ?

-Ryan

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@HaganeNoKokoroJul 02.2005 — I don't think javascript can access postdata. Postdata is sent to the server, not to the client; your javascript can send postdata to a server by submitting a form whose method="POST"

Unless this is a server-side javascript in an ASP page (not really javascript, but Microsoft JScript). Then postdata is accessed using the [url=http://www.w3schools.com/asp/coll_form.asp]Request.Form[/url] object.

If this is an ASP / JScript question, it should probably be in the asp forum, but... whatever.
×

Success!

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