Loading ...
Sorry, an error occurred while loading the content.

Re: Encrypting PHP+HTML source code

Expand Messages
  • Manish kumar
    Message 1 of 2 , Aug 2, 2009
    • 0 Attachment
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Untitled Document</title>
      <style type="text/css">
      table{
      border:groove #000000;
      }
      </style>
      </head>
      <body bgcolor="#CCCCCC">
      <form method="post" action="action.php">
      <script type="text/javascript">
      var count=1;
      function display()
      {
      for(var k=2;k<=10;k++)
      {
      if(document.getElementById(k).style.display=="none")
      {
      document.getElementById(k).style.display="block";
      count++;
      return;
      }

      }

      }
      var coun=1;
      function remove(Id)
      {
      document.getElementById(Id).style.display="none";
      coun++;
      }
      </script>


      <?php
      for($tableCount=1;$tableCount<=5;$tableCount++)
      {
      ?>
      <table id="<?php echo $tableCount;?>" border="0" cellpadding="2%" cellspacing="5%" width="50%" style="display:<?php echo $tableCount=='1'?' ':'none'?>">
      <tr><td colspan="3">Table Id is :"<?php echo $tableCount;?>"</td></tr>
      <tr><td colspan="2">FirstName :</td><td><input type="text" name="firstname<?php echo $tableCount;?>" /></td></tr>
      <tr><td colspan="2">LastName :</td><td><input type="text" name="lastname<?php echo $tableCount;?>" /></td></tr>
      <tr><td colspan="2">UserName :</td><td><input type="text" name="uname<?php echo $tableCount;?>" /></td></tr>
      <tr><td colspan="2">Passsword :</td><td><input type="password" name="password<?php echo $tableCount;?>" /></td></tr>
      <tr><td colspan="2">Re-Enter Password :</td><td ><input type="password" name="password<?php echo $tableCount;?>" /></td></tr>
      <tr><td colspan="3"><b>Your Date Of Birth is:</b></td></tr>
      <tr><td>Date :
      <select name="date<?php echo $tableCount;?>" size="1">
      <?php
      for($i=1;$i<=31;$i++)
      {
      ?>
      <option><?php echo ($i);?></option>
      <?php
      }?>
      </select></td>

      <td>Month: <select name="month<?php echo $tableCount;?>" size="1">

      <?php
      for($i=1;$i<=12;$i++)
      {
      ?>
      <option value=<?php echo ($i);?>><?php echo date("M", mktime(0,0,0,$i,1,2009));?></option>
      <?php
      }?>

      </select></td>

      <td>Year:
      <select name="year<?php echo $tableCount;?>" size="1">
      <?php
      for($i=date("Y",mktime(0,0,0,1,1,date("Y")-9));$i>=1950;$i--)
      {
      ?>
      <option><?php echo ($i);?></option>
      <?php
      }?>
      </select></td></tr>

      <tr><td colspan="2">Country :</td><td><input type="text" name="country<?php echo $tableCount;?>" /></td></tr>
      <tr><td colspan="2">State:</td><td><input type="text" name="state<?php echo $tableCount;?>" /></td></tr>
      <tr><td colspan="2">City or distt. :</td><td><input type="text" name= "city<?php echo $tableCount;?>" /></td></tr>
      <tr><td colspan="2">Pastal Address :</td><td><textarea name="address<?php echo $tableCount;?>"></textarea></td></tr>
      <tr><td colspan="3"></td></tr>

      <?php
      if($tableCount==1){?>
      <tr><td colspan="2">Add More Tables:</td><td><input type="button" value="Add" onClick="display()"></td></tr>
      <?php }
      else{?>
      <tr><td colspan="2">Remove Table:</td><td><input type="button" value="Remove" onClick="remove(<?php echo $tableCount ?>)"></td></tr>

      <?php
      }?>

      </table>
      <?php
      }
      ?>
      <table width="50%" border="0" cellspacing="2" cellpadding="2">
      <tr >
      <td align="center" colspan="3"><input type="submit" value="Submit" />
      <input type="reset" value="Reset"/></td>
      </tr>
      </tr>
      </table>
      </form>
      </body>
      </html>
    Your message has been successfully submitted and would be delivered to recipients shortly.