Log in

View Full Version : need programme for tracking url dynamically



lowshoulder
10-25-2014, 11:47 AM
Need A Html Programme which let User Of My Wordpress Site TO Input Following Thing
1.Enter Website Url Say https://paytm.com/
2.Enter User ID (Sub ID) Say 1234
And When Clicking Link Me Button
Returns Output Like
http://linksredirect.com?pub_id=4180CL3981&subid=1234&url=https%3A//paytm.com/
im very new to programme so your help values me a lot

molendijk
10-26-2014, 02:34 PM
Something like this:


<!DOCTYPE html>
<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>&nbsp;</title>

<script>
var uurl

function prompt_id() {
var userid = prompt("Please enter User ID");
if (userid == "1234")
{window.open("http://linksredirect.com?pub_id=4180CL3981&subid="+userid+"&amp;url="+uurl)}
else alert('Wrong ID')
}

function prompt_url() {
var url = prompt("Please enter Website Url");
if (url == "https://paytm.com")
{uurl=url; prompt_id()}
else alert('Wrong Url')
}

</script>

</head>

<body>

<button onclick="prompt_url()">Link me</button>

</body>
</html>