martynball
01-20-2010, 03:46 PM
<body>
<?php
//if (isset($_POST[''])) {
//}
?>
<form name="tbCreate" method="post">
Table name:<br />
<input type="text" name="tableName"><br />
<?php
if (isset($_POST['addColumn'])) {
echo "Column Name: <input type=\"text\" name=\"columnName[]\"><br />";
}
?>
<input type="submit" name="addColumn" value="Add Column">
</form>
</body>
Is there a way that the addColumn button can be clicked more than once, so that I can get more columnName fields?
<?php
//if (isset($_POST[''])) {
//}
?>
<form name="tbCreate" method="post">
Table name:<br />
<input type="text" name="tableName"><br />
<?php
if (isset($_POST['addColumn'])) {
echo "Column Name: <input type=\"text\" name=\"columnName[]\"><br />";
}
?>
<input type="submit" name="addColumn" value="Add Column">
</form>
</body>
Is there a way that the addColumn button can be clicked more than once, so that I can get more columnName fields?