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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Dec 27 04:01:29 2024 UTC