javatiger said:
I meant an award certificate, you type in your name, date of award etc
then click go, then theres a page with your award certificate.
Simple:
page1.html:
<body>
<form name="myForm" method="get" action="page2.html">
<input type="text" name="personsName">
<input type="text" name="theDate">
<input type="submit" value="Get certificate">
</form>
</body>
page2.html:
<body>
<script type="text/javascript">
var searchString = window.location.search.substring(1);
var Parameters = {};
var nameValuePairs = searchString.split(/&/);
var nameValuePair;
for (var i = 0; i < nameValuePairs.length; i++) {
nameValuePair = nameValuePairs
.split(/=/);
Parameters[nameValuePair[0]] = nameValuePair[1];
}
document.write(
'<h1>Certificate for ' +
Parameters['personsName'] +
'</h1>' +
'<h2>issued on ' +
Parameters['theDate'] +
'.</h2>' +
'<h3>Congratulations on your achievement!</h3>'
);
</script>
</body>
Of course, there is no way to stop someone from visiting page1 and issuing certificate after certificate for
themselves or others, for any date they wish.