| 
<?php
 include ('constant.php');
 $id = $_GET['id'];
 echo "<html>
 <head>
 <title>php&xml guestbook</title>
 <link rel='stylesheet' href='style.css'>
 </head>
 <body bgcolor='#FFFBDA'>";
 echo "<form action='insert.php' method=post name=form1 onsubmit='return check()'>";
 echo "<input type=hidden name=id value=".$id."><br>";
 echo WORD_TITLE."<input type=text name=title><br>";
 echo WORD_AUTHOR."<input type=text name=author><br>";
 echo WORD_CONTENT."<textarea name=content cols='40' rows='5'></textarea><br><br>";
 echo SELECT_HEAD_PIC."<br><br>
 <img src='images/person/1.gif'><input type='radio' name='picture' value='1' checked>   
 <img src='images/person/2.gif'><input type='radio' name='picture' value='2'>   
 <img src='images/person/3.gif'><input type='radio' name='picture' value='3'>   
 <img src='images/person/4.gif'><input type='radio' name='picture' value='4'>   
 <img src='images/person/5.gif'><input type='radio' name='picture' value='5'>   
 <img src='images/person/6.gif'><input type='radio' name='picture' value='6'>   
 <img src='images/person/7.gif'><input type='radio' name='picture' value='7'>   
 <img src='images/person/8.gif'><input type='radio' name='picture' value='8'>   
 <img src='images/person/9.gif'><input type='radio' name='picture' value='9'>   
 <img src='images/person/10.gif'><input type='radio' name='picture' value='10'>   
 <img src='images/person/11.gif'><input type='radio' name='picture' value='11'>   
 <img src='images/person/12.gif'><input type='radio' name='picture' value='12'>   
 <img src='images/person/13.gif'><input type='radio' name='picture' value='13'>   
 <img src='images/person/14.gif'><input type='radio' name='picture' value='14'>   
 <img src='images/person/15.gif'><input type='radio' name='picture' value='15'>   
 <img src='images/person/16.gif'><input type='radio' name='picture' value='16'>   
 <img src='images/person/17.gif'><input type='radio' name='picture' value='17'>   
 <img src='images/person/18.gif'><input type='radio' name='picture' value='18'>   
 <img src='images/person/19.gif'><input type='radio' name='picture' value='19'>   
 <img src='images/person/20.gif'><input type='radio' name='picture' value='20'>   
 <img src='images/person/21.gif'><input type='radio' name='picture' value='21'>   
 <img src='images/person/22.gif'><input type='radio' name='picture' value='22'>   
 <img src='images/person/23.gif'><input type='radio' name='picture' value='23'>   
 <img src='images/person/24.gif'><input type='radio' name='picture' value='24'><br><br>";
 echo "<input type=submit value=".SUBMIT_BUTTON.">";
 echo "</form>";
 echo "</table></body>";
 echo "</html>";
 
 ?>
 
 <SCRIPT language=javascript>
 function check()
 {
 
 if (document.form1.title.value=="")
 {
 alert("please enter title");
 form1.title.focus();
 return false;
 }
 if (document.form1.author.value=="")
 {
 alert("please enter author");
 form1.author.focus();
 return false;
 }
 if (document.form1.content.value=="")
 {
 alert("please enter content");
 form1.content.focus();
 return false;
 }
 
 }
 </SCRIPT>
 |