Login   Register  
PHP Classes
elePHPant
Icontem

File: step2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of dan boorn  >  OO Mysql Wrapper  >  step2.php  >  Download  
File: step2.php
Role: Application script
Content type: text/plain
Description: Script to generate example PHP Code
Class: OO Mysql Wrapper
MySQL database SQL queries wrapper
Author: By
Last change:
Date: 2006-07-29 15:46
Size: 1,676 bytes
 

Contents

Class file image Download
<!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>Code Generator</title>
</head>
<body>
<p align="center"><strong>OO Mysql Wrapper PHP Coder Generator</strong></p>
<script src="validate.js" type="text/javascript"></script>
<form id="form1" name="form1" method="post" action="step3.php">
  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><strong>Step 2 </strong></td>
      <td>&nbsp;</td>
    </tr>
    <?
        $post 
$_POST;
        
        if(
$post['type'] == "Select"){
            echo 
"<tr>";
              echo 
"<td>Enter Select Column Names or * for all.</td>";
              echo 
"<td><input type='text' name='Select' value='*' required='yes' validate='text' message='Enter Select Column Names or * for all.'></td>";
            echo 
"</tr>";
        }
        else if(
$post['type'] != "Delete Row"){
            echo 
"<tr>";
              echo 
"<td>Number of Fields?</td>";
              echo 
"<td><input type='text' name='Fields' value='1' size='10' required='yes' validate='int' message='Enter Number of Fields Needed'></td>";
            echo 
"</tr>";
        }                      
        
    
?>
    <input type='hidden' name='type' value='<?=$post['type'];?>'>
    <tr>
      <td>Table Name?</td>
      <td><input type='text' name='Table' required='yes' validate='text' message='Enter Table Name'></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" value="Next" onClick="validate(this.form); return document.formSubmit;" /></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
</body>

</html>