This document details a 2020 December promotion page for a specific product, integrating existing website functionality with a new form submission process. The implementation uses JavaScript, ASP, and SQL to handle form data, email notifications, and database updates, ensuring seamless integration with the existing system. The process involved aligning form field names, modifying existing email handling procedures, and creating a custom page flow for this specific promotion.
2020년 12월 진행했던 특정 제품 프로모션에 관한 페이지 입니다.
http://www.krinfra.co.kr/a100/
요구사항:
우선 FORM에 들어가는 정보들을 기존에 사용하던 javascript, ASP, SQL 등으로 전달해주기 위해 name을 맞추어 주었습니다.
기존 공식 홈페이지에서 문의를 받아서 처리하던 기능들을 살펴보니
로 구성되어 있었습니다.
그래서 전
하였습니다.
우선, 메인페이지에 아래 내용들을 추가해주었습니다.
<%
Dim arrProDuctNivia(1)
arrProDuctNivia(0) = "NVIDIA"
arrProDuctNivia(1) = "A100"
%>
...
...
...
...
...
Javascript에서 아래 내용을 추가하였습니다.
function A100_send(obj){
}
Javascript에서 action 을 받는 xxxxx4.asp의 내용
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
...
...
...
'메일발송자
Set RsMail = DBcon.Execute(SQL_M)
...
...
...
ELSEIF ProductMajorName = "NVIDIA_A100" Then 'NVIDIA 테스트!!!!!!!!!!!!!!!!!!!!
...
pagego="purchase.asp?product="&ProductMajorName&""
If ProductMajorName = "NVIDIA_A100" Then
pagego="/a100"
End if
%>
FORM에서 정보를 가져오고
가져온 정보를 SQL을 활용하여 메일에 넣기위해 정리해주고
현재 ProductmajorName에 맞게 이메일 받는 주소, 보내는 주소를 맞추어 주고
해당 제품은 공식홈페이지 제품문의와 다른 페이지에 존재하기 때문에, 문의접수 후 이어지는 페이지를 다르게 해줍니다.
접수 후, 페이지를 옮겨줍니다.
한번 테스트 해보았습니다.
폼에 정보를 넣어주고 '접수'를 하였고,
완료가 되었다는 ALERT를 받았습니다.
이메일을 받았습니다!
그룹웨어 '영업지원/제품구매문의'에 정보가 들어왔습니다!
느낌점 및 후기: