<script Language="JavaScript">
function FormValidator(theForm){
if (theForm.Name.value==""){
alert("Please enter your name.");
theForm.Name.focus();
return (false);
}
if (theForm.Subject.value==""){
alert("Please enter the subject");
theForm.Subject.focus();
return (false);
}
return (true);
}
</script>
<form method="POST" action="add.php" onsubmit="return FormValidator(this)" name="FormName">
<p>
Name : <input type="text" name="Name" size="20"><br>
Subject : <input type="text" name="Subject" size="20"><br>
<input type="submit" value="Submit" name="Submit"> <input type="reset" value="Reset" name="Reset">
</p>
</form>
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2012
(231)
-
▼
May
(21)
- opens a directory with opendir() in php
- Generate random password
- About me and PHP
- MySQL Commands
- Form Validator
- file write in php
- Connecting to server, create database and creating...
- পিএইচপি অ্যারে
- How to start PHP?
- Drag and drop to order list elements with Scriptac...
- Create Online Shop using Paypal, PHP and Dreamweaver
- Step by step PHP video tutorials from start to fin...
- Membuat Script PHP untuk Kompresi File ZIP
- Control Structures in PHP: FOR
- Joomla-v-15-Configure-and-troubleshoot-SEF-URLs
- Registration Form
- Searh script
- Installing of Webserver : Apache 2.0.53
- What is PHP
- Drag and drop to order list elements with Scriptac...
- How to hack into a facebook account
-
▼
May
(21)