php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13769 don't work this is the second fase of my progect
Submitted: 2001-10-19 22:10 UTC Modified: 2001-10-20 00:36 UTC
From: danielerew at hotmail dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.0.6 OS: windows 98 sec. ed
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danielerew at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-10-19 22:10 UTC] danielerew at hotmail dot com
<?php
if ((!$nome_tabella) || (!$num_campi))  { 
  header("Location: http://localhost/mostra_creatabella.html");
exit;
}

$blocco_modulo ="

<form method=\"post\"   action=\"creatabella.php\">
<input type=\"hidden\" name=\"nome_tabella\" value=\"$nome_tabella\">

<TABLE CELLSPACING=5 CELLPADDING=5>
<tr>
<th>nome campo></th><th>tipo</th><th>lunghezza</th></tr>
";

for ($i = 0; $i < $num_campi;
$i++)
{

$blocco_modulo .= "
<tr>
<td align=center><input type=\"text\" name=\"nome_campo[]\" size=\"30\"></td>

<td align=center>


<select name=\"tipo_campo[]\">

<option value=\"char\">char</option>
<option value=\"date\">date</option>
<option value=\"float\">float</option>
<option value=\"int\">int</option>
<option value=\"text\">text</option>
<option value=\"varchar\">varchar</option>
</select>
</td>

<td align=center><input type=\"text\" name=\"lunghezza_campo[]\" size=\"5\"></td>

</tr>

";

}

$blocco_modulo .= "
<tr>
<td align=center colspan=3<input type=\"submit\" value=\"crea la tabella\"></td>
</tr>
</table>

</form>

";

?>

<html>
<head>
<Title>Creazione di una tabella in un database: fase 2
</head>
<body>

<h1>Definizioni dei campi di <? echo "$nome_tabella"; ?>
</h1>
<? echo "$blocco_modulo"; ?>
</body>
</html>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-20 00:36 UTC] sniper@php.net
Please read the bug-dos-and-donts before submitting any bug reports.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 14:01:30 2024 UTC