Location: PHPKode > scripts > Feedback > kbfeedback/kbfeedback/index.php
<form method='POST' action='feedback1' onsubmit="return verifyinvitedemo(this.sndnam, this.sndeml, this.sndsbj, this.sndmsg)">
Your Name<br><input value='' name='sndnam'><br>
Your Email<br><input value='' name='sndeml'><br>
Subject<br><input value='' name='sndsbj'><br>
Message<br><textarea name='sndmsg' cols='10' rows='3'>Your message here</textarea><br>
<input type='submit' value='Submit Feedback'>
</form>

 <script>

var fieldalias="Email Address field"

var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i

function emailcheck(e){
var returnval=emailfilter.test(e.value)
if (returnval==false){
return returnval
e.select()
}
return returnval
}


function verifyinvitedemo(sndnam, sndeml, sndsbj, sndmsg)
{
	var passed=false
 	
       if (sndnam.value=='')
 			{
 			alert("Please enter Your Name")
 			sndnam.focus()
 			} 
        else
	        if (sndeml.value=='' )
 		{
  		alert("Your Email Address can not be blank.")
  		sndeml.focus()
 		}
 	else 
		 if (!emailcheck(sndeml))
 			{
 			alert("ERROR : Please enter valid email Address Example: hide@address.com")
 			sndeml.focus()
 			}
 	else 
		 if (sndsbj.value=='')
 			{
 			alert("Please enter the Subject")
 			sndsbj.focus()
 			}
 	else 
		 if (sndmsg.value=='')
 			{
 			alert("Please enter the Message")
 			sndmsg.focus()
 			}
	
	 				
else
  passed=true
return passed
}
</script>     
Return current item: Feedback