version 1.23, 2024/03/28 19:16:14 |
version 1.28, 2024/03/28 19:25:29 |
|
|
//const form = document.querySelector("#cform"); |
const form = document.querySelector("#cform"); |
|
|
function validateEmail(email) { |
function validateEmail(email) { |
const regex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; |
const regex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; |
Line 56 async function sendData() { |
|
Line 56 async function sendData() { |
|
ii.textContent="Sent"; |
ii.textContent="Sent"; |
console.log(`Challenge Success ${token}`); |
console.log(`Challenge Success ${token}`); |
// postData(); |
// postData(); |
var data=`${token};${em};${su};${ms}`, |
var data=`${token}|${em}|${su}|${ms}`, |
status=""; |
status=""; |
$.post("/feedbk/", function(data, status){ |
$.post("/feedbk/", function("cfem=id@host.name&cfsu=subject&cfme=contact me, please", status){ |
alert("Data: " + data + "\nStatus: " + status); |
console.log("Data: " + data + "\nStatus: " + status); |
|
}); |
|
|
|
|
|
|