// price.php 専用関数 function setPrice(material, size, price, n_min, n_max){ var form = document.createElement("form"); form.method = "POST"; form.action = "https://www.ad-sheet.net/order_data.php"; var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = material; ipt.name = "material"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = size; ipt.name = "size"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = price; ipt.name = "price"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = n_min; ipt.name = "n_min"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = n_max; ipt.name = "n_max"; form.appendChild(ipt); var b = document.getElementsByTagName("body")[0]; b.appendChild(form); form.submit(); b.removeChild(form); } // 横断幕 function setPriceMaku(material, price, w_min, w_max, h_min, h_max){ var form = document.createElement("form"); form.method = "POST"; form.action = "https://www.ad-sheet.net/order_maku_data.php"; var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = material; ipt.name = "material"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = price; ipt.name = "price"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = w_min; ipt.name = "w_min"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = w_max; ipt.name = "w_max"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = h_min; ipt.name = "h_min"; form.appendChild(ipt); var ipt = document.createElement("input"); ipt.type = "hidden"; ipt.value = h_max; ipt.name = "h_max"; form.appendChild(ipt); var b = document.getElementsByTagName("body")[0]; b.appendChild(form); form.submit(); b.removeChild(form); }