coding for displaying my result in my text box

  • thomas_sum
  • Beginner
  • Beginner
  • thomas_sum
  • Posts: 44

Post 3+ Months Ago

what is the coding for displaying my result which will appear in my page text box. Below is my coding for my page
Code: [ Select ]
<html>
<head>
<style type="text/css">
<!--
body,tr,td {
    
    background-color: #6D9CBA;


    scrollbar-arrow-color: #D5E8EB;
    scrollbar-track-color: #6D9CBA;
    scrollbar-darkshadow-color: #5281AB;
    scrollbar-3dlight-color: #839EA9;
    scrollbar-face-color: #6D9CBA;
    scrollbar-shadow-color: #5A87AE;
    scrollbar-highlight-color: #A4BDC3;

    
    }

a:link {
    color: #FFF; text-decoration: none; cursor: move;
    }
a:visited {
    color: #FFF; text-decoration: none; cursor: move;
    }
a:active {
    color: #FFF; text-decoration: none; cursor: move; filter: glow(color=#ffffff, strength=1); height: 0;
}
a:hover {
     color: #FFF; text-decoration: none; cursor: move; filter: glow(color=#ffcc00, strength=3); height: 0;
    }
-->
</style>


<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="78%" border="0" cellspacing="0" cellpadding="0">
 <tr>
  <td colspan="5"><img src="bgitop%20copy.jpg" width="597" height="145"></td>
 </tr>
 <tr>
  <td width="50%"><font size="3" color="#0099FF"><b><font color="#0033FF"><a href="Index.htm">Home</a></font></b></font></td>
  <td width="50%">&nbsp;</td>
  <td width="50%">&nbsp;</td>
  <td width="50%">&nbsp;</td>
  <td width="50%">&nbsp;</td>
 </tr>
 <tr>
  <td colspan="5">
   <hr size="3">
   <b><font size="+1">Student Data</font></b>
<form name="studentData" method="post" action="">
    <table width="96%" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td width="21%">
       <div align="left"><b>Student's Name</b></div>
      </td>
      <td width="19%">
       <div align="left">
        <input type="text" name="StudentName" size="20">
       </div>
      </td>
      <td width="21%">
       <div align="right"><b>Student's ID</b></div>
      </td>
      <td width="39%">
       <div align="center">
        <input type="text" name="StudentID" size="20">
       </div>
      </td>
     </tr>
     <tr>
      <td width="21%">
       <div align="left"><b>Class </b></div>
      </td>
      <td width="19%">
       <div align="left">
        <input type="text" name="Class" size="20">
       </div>
      </td>
      <td width="21%">
       <div align="right"><b>Department</b></div>
      </td>
      <td width="39%">
       <div align="center">
        <input type="text" name="Dept" size="20">
       </div>
      </td>
     </tr>
    </table>
    <p><b><font size="+1">Offences' Made</font></b></p>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td width="15%">&nbsp;</td>
      <td width="30%"><b>Date Commited</b></td>
      <td width="24%" align="right">&nbsp;</td>
      <td width="31%"><b>Date Commited</b></td>
     </tr>
     <tr>
      <td width="15%">
       <div align="left"><b>LateComing</b></div>
      </td>
      <td width="30%">
       <div align="left">
        <input type="text" name="textfield" size="20">
       </div>
      </td>
      <td width="24%" align="right">
       <div align="right"><b>Defient</b></div>
      </td>
      <td width="31%">
       <div align="left">
        <input type="text" name="T1" size="20">
       </div>
      </td>
     </tr>
     <tr>
      <td width="15%">
       <div align="left"><b>Smoking</b></div>
      </td>
      <td width="30%">
       <div align="left">
        <input type="text" name="textfield2" size="20">
       </div>
      </td>
      <td width="24%" align="right">
       <div align="right"><b>Eating in lab</b></div>
      </td>
      <td width="31%">
       <div align="left">
        <input type="text" name="T2" size="20">
       </div>
      </td>
     </tr>
     <tr>
      <td width="15%">
       <div align="left"><b>ColouredHair</b></div>
      </td>
      <td width="30%">
       <div align="left">
        <input type="text" name="textfield3" size="20">
       </div>
      </td>
      <td width="24%" align="right">
       <div align="right"><b>Missing Asembling</b></div>
      </td>
      <td width="31%">
       <div align="left">
        <input type="text" name="T3" size="20">
       </div>
      </td>
     </tr>
     <tr>
      <td width="15%">
       <div align="left"><b>Debarment </b></div>
      </td>
      <td width="30%">
       <div align="left">
        <input type="text" name="textfield4" size="20">
       </div>
      </td>
      <td width="24%" align="right">
       <div align="right"><b>Improper Uniform</b></div>
      </td>
      <td width="31%">
       <div align="left">
        <input type="text" name="T4" size="20">
       </div>
      </td>
     </tr>
     <tr>
      <td width="15%">
       <div align="left"><b>`</b></div>
      </td>
      <td width="30%">
       <div align="left">&nbsp;</div>
      </td>
      <td width="24%" align="right">
       <div align="right"></div>
      </td>
      <td width="31%">
       <div align="left"></div>
      </td>
     </tr>
    </table>
    <p><b><font size="4">*Remarks</font></b></p>
    <p>
     <textarea name="textfield5" cols="50" rows="10"></textarea>
    </p>
    <p>
     <input type="submit" name="Submit" value="Save">
     <input type="submit" name="Submit2" value="Delete">
     <input type="reset" name="Submit3" value="Reset">
    </p>
   </form>
 
                      
</td>
 </tr>
</table>
</body>
</html>
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. <!--
  5. body,tr,td {
  6.     
  7.     background-color: #6D9CBA;
  8.     scrollbar-arrow-color: #D5E8EB;
  9.     scrollbar-track-color: #6D9CBA;
  10.     scrollbar-darkshadow-color: #5281AB;
  11.     scrollbar-3dlight-color: #839EA9;
  12.     scrollbar-face-color: #6D9CBA;
  13.     scrollbar-shadow-color: #5A87AE;
  14.     scrollbar-highlight-color: #A4BDC3;
  15.     
  16.     }
  17. a:link {
  18.     color: #FFF; text-decoration: none; cursor: move;
  19.     }
  20. a:visited {
  21.     color: #FFF; text-decoration: none; cursor: move;
  22.     }
  23. a:active {
  24.     color: #FFF; text-decoration: none; cursor: move; filter: glow(color=#ffffff, strength=1); height: 0;
  25. }
  26. a:hover {
  27.      color: #FFF; text-decoration: none; cursor: move; filter: glow(color=#ffcc00, strength=3); height: 0;
  28.     }
  29. -->
  30. </style>
  31. <title>Untitled Document</title>
  32. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  33. </head>
  34. <body bgcolor="#FFFFFF" text="#000000">
  35. <table width="78%" border="0" cellspacing="0" cellpadding="0">
  36.  <tr>
  37.   <td colspan="5"><img src="bgitop%20copy.jpg" width="597" height="145"></td>
  38.  </tr>
  39.  <tr>
  40.   <td width="50%"><font size="3" color="#0099FF"><b><font color="#0033FF"><a href="Index.htm">Home</a></font></b></font></td>
  41.   <td width="50%">&nbsp;</td>
  42.   <td width="50%">&nbsp;</td>
  43.   <td width="50%">&nbsp;</td>
  44.   <td width="50%">&nbsp;</td>
  45.  </tr>
  46.  <tr>
  47.   <td colspan="5">
  48.    <hr size="3">
  49.    <b><font size="+1">Student Data</font></b>
  50. <form name="studentData" method="post" action="">
  51.     <table width="96%" border="0" cellspacing="0" cellpadding="0">
  52.      <tr>
  53.       <td width="21%">
  54.        <div align="left"><b>Student's Name</b></div>
  55.       </td>
  56.       <td width="19%">
  57.        <div align="left">
  58.         <input type="text" name="StudentName" size="20">
  59.        </div>
  60.       </td>
  61.       <td width="21%">
  62.        <div align="right"><b>Student's ID</b></div>
  63.       </td>
  64.       <td width="39%">
  65.        <div align="center">
  66.         <input type="text" name="StudentID" size="20">
  67.        </div>
  68.       </td>
  69.      </tr>
  70.      <tr>
  71.       <td width="21%">
  72.        <div align="left"><b>Class </b></div>
  73.       </td>
  74.       <td width="19%">
  75.        <div align="left">
  76.         <input type="text" name="Class" size="20">
  77.        </div>
  78.       </td>
  79.       <td width="21%">
  80.        <div align="right"><b>Department</b></div>
  81.       </td>
  82.       <td width="39%">
  83.        <div align="center">
  84.         <input type="text" name="Dept" size="20">
  85.        </div>
  86.       </td>
  87.      </tr>
  88.     </table>
  89.     <p><b><font size="+1">Offences' Made</font></b></p>
  90.     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  91.      <tr>
  92.       <td width="15%">&nbsp;</td>
  93.       <td width="30%"><b>Date Commited</b></td>
  94.       <td width="24%" align="right">&nbsp;</td>
  95.       <td width="31%"><b>Date Commited</b></td>
  96.      </tr>
  97.      <tr>
  98.       <td width="15%">
  99.        <div align="left"><b>LateComing</b></div>
  100.       </td>
  101.       <td width="30%">
  102.        <div align="left">
  103.         <input type="text" name="textfield" size="20">
  104.        </div>
  105.       </td>
  106.       <td width="24%" align="right">
  107.        <div align="right"><b>Defient</b></div>
  108.       </td>
  109.       <td width="31%">
  110.        <div align="left">
  111.         <input type="text" name="T1" size="20">
  112.        </div>
  113.       </td>
  114.      </tr>
  115.      <tr>
  116.       <td width="15%">
  117.        <div align="left"><b>Smoking</b></div>
  118.       </td>
  119.       <td width="30%">
  120.        <div align="left">
  121.         <input type="text" name="textfield2" size="20">
  122.        </div>
  123.       </td>
  124.       <td width="24%" align="right">
  125.        <div align="right"><b>Eating in lab</b></div>
  126.       </td>
  127.       <td width="31%">
  128.        <div align="left">
  129.         <input type="text" name="T2" size="20">
  130.        </div>
  131.       </td>
  132.      </tr>
  133.      <tr>
  134.       <td width="15%">
  135.        <div align="left"><b>ColouredHair</b></div>
  136.       </td>
  137.       <td width="30%">
  138.        <div align="left">
  139.         <input type="text" name="textfield3" size="20">
  140.        </div>
  141.       </td>
  142.       <td width="24%" align="right">
  143.        <div align="right"><b>Missing Asembling</b></div>
  144.       </td>
  145.       <td width="31%">
  146.        <div align="left">
  147.         <input type="text" name="T3" size="20">
  148.        </div>
  149.       </td>
  150.      </tr>
  151.      <tr>
  152.       <td width="15%">
  153.        <div align="left"><b>Debarment </b></div>
  154.       </td>
  155.       <td width="30%">
  156.        <div align="left">
  157.         <input type="text" name="textfield4" size="20">
  158.        </div>
  159.       </td>
  160.       <td width="24%" align="right">
  161.        <div align="right"><b>Improper Uniform</b></div>
  162.       </td>
  163.       <td width="31%">
  164.        <div align="left">
  165.         <input type="text" name="T4" size="20">
  166.        </div>
  167.       </td>
  168.      </tr>
  169.      <tr>
  170.       <td width="15%">
  171.        <div align="left"><b>`</b></div>
  172.       </td>
  173.       <td width="30%">
  174.        <div align="left">&nbsp;</div>
  175.       </td>
  176.       <td width="24%" align="right">
  177.        <div align="right"></div>
  178.       </td>
  179.       <td width="31%">
  180.        <div align="left"></div>
  181.       </td>
  182.      </tr>
  183.     </table>
  184.     <p><b><font size="4">*Remarks</font></b></p>
  185.     <p>
  186.      <textarea name="textfield5" cols="50" rows="10"></textarea>
  187.     </p>
  188.     <p>
  189.      <input type="submit" name="Submit" value="Save">
  190.      <input type="submit" name="Submit2" value="Delete">
  191.      <input type="reset" name="Submit3" value="Reset">
  192.     </p>
  193.    </form>
  194.  
  195.                       
  196. </td>
  197.  </tr>
  198. </table>
  199. </body>
  200. </html>
  • the_Maven
  • Graduate
  • Graduate
  • the_Maven
  • Posts: 196

Post 3+ Months Ago

which text box are you trying to show the result in?
  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Posts: 401
  • Loc: Scorpion Hole

Post 3+ Months Ago

Well, if you wanted to use PHP this could be easy.
Where ever you want the information to display you can just put:
Code: [ Select ]
<?=$_POST['name.of.field']?>

Into the value of your field.
  • CazpianXI
  • Proficient
  • Proficient
  • User avatar
  • Posts: 285

Post 3+ Months Ago

Is this what you want?:

Code: [ Select ]
<html>
<head>
<script language="javascript">
  function viewS(){
   out.value = document.body.outerHTML;
  }
</script>

</head>
<body>

<textarea id="out" cols="50" rows="5"></textarea>

<input type="button" onClick="viewS()" value="View Source">

</body>
</html>
  1. <html>
  2. <head>
  3. <script language="javascript">
  4.   function viewS(){
  5.    out.value = document.body.outerHTML;
  6.   }
  7. </script>
  8. </head>
  9. <body>
  10. <textarea id="out" cols="50" rows="5"></textarea>
  11. <input type="button" onClick="viewS()" value="View Source">
  12. </body>
  13. </html>


Hope this helps.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 52 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.