Client | data
Author: DAO
Email:pjzhp@263.net
Client-side data validation for user input
If the entered content is not satisfied, it is not committed and the focus automatically jumps to that location.
More useful than verifying data on the server side after sending!
Scripting code:
HTML page code:
<title> article published </title>
<link rel= "stylesheet" type= "Text/css" href= "Style.css" >
<body bgcolor= #fafee9 >
<center> original article Submission office </center>
<br><center><font color=red> here is forbidden to publish reproduced or copied articles! </font></center>
<form name= "Form1" method= "Post" action= "pub_ok.php" >
<table width= "90%" border= "0" cellspacing= "1" cellpadding= "1" align= "Center" >
<tr>
<td>
Your name: <input type=text name=name size=30>
</td>
</tr>
<tr>
<td>
Your mailbox: <input type=text name=email size=30>
</td>
</tr>
<tr>
<td>
Article title: <input type= "text" Name=title size= ">"
</td>
</tr>
<tr>
<td>
Article content: <br><textarea name=detail style= "width=80%;height=180px;" ></textarea>
</td>
</tr>
<tr>
<td>
Some notes: <br><textarea Name=demo style= "width=80%;height=80px;" ></textarea>
</td>
</tr>
<tr>
<td><input type= "Submit" Name= "pub" value= "Publish your Work" ></td>
</tr>
</table>
</form>
<p>
</body>
From the original literature published page of my website.