PHP Classes

File: create_static_form.sample.php

Recommend this page to a friend!
  Classes of Uwe Stein   autoformBQ   create_static_form.sample.php   Download  
File: create_static_form.sample.php
Role: Example script
Content type: text/plain
Description: a example how to generate static forms via http-download
Class: autoformBQ
Generate Web forms from MySQL query results
Author: By
Last change:
Date: 19 years ago
Size: 1,301 bytes


Class file image Download
("Content-Type: application/octet-stream");
header("Content-Disposition: ".(strpos($HTTP_USER_AGENT,"MSIE5.5")? "" : "attachment;")."filename=static_form.html.txt");

  <link rel="stylesheet" type="text/css" href="autoformBQ.css">


/* Add your values here */
$db_server = "localhost";
$db_database = "serv";
$db_user = "root";
$db_password = "";

$conn = @mysql_connect($db_server,$db_user,$db_password);
if (

// define and execute your query
$sql = 'SELECT test.* , test2.ggg, FROM test , test2 WHERE = test2.id2';

$query = "select * from test limit 1";
$result = mysql_query($sql);
if (!
{ echo
"kein ergebnis";

// create the form-object
$form = new autoformBQ($conn,$result,"sample.action.php");
$form->headline("<h3 align=\"center\">Form with default settings:<br></h3>");
// print the form
$form->bFormEdit = TRUE;
$form->bFormEdit = TRUE;

echo "<br>";
$form2->bFormEdit = TRUE;