send javascript variable to classic asp

2019-02-28 21:44发布

I have a jQuery-powered cost calculator, and I want to allow the webpage to send a summary of the calculator's values in an email. The server runs on classic ASP.

How do I retrieve javascript variables with ASP?

I understand that the ASP code runs before the page loads, and the javascript code runs only after the page is loaded, since the javascript is not runat="server".

How can I store javascript variables so that I can retrieve them with ASP code on a processing page?

calculator with Javascript --> form action = "process.asp" --> ASP to pick up javascript values

College Cost Calculator

2条回答
干净又极端
2楼-- · 2019-02-28 22:05

Another solution is to set the values of the javascript variables to hidden form fields. Submit the form and read the form values on the server-side. After reading the values, create and send the email.

查看更多
乱世女痞
3楼-- · 2019-02-28 22:15
登录 后发表回答