Hi,
I am adding an admin part to a site so the owner can add a new table for each property.
I have my form.... Very basic
Code:
<form action="createtable.php" method="post">
Name of house: <input type="text" name="name" size="20"> <input type="submit" name="submit" value="Submit"> </form>
and it should go to createtable.php... where the name of the property entered in the field in form comes out in this part
PHP Code:
<?php $result="CREATE TABLE This is where name of table should be( proname varchar(100) NOT NULL, prostart date NOT NULL, proend date NOT NULL, promin enum('Semana', 'Fin de Semana', 'Tres Dias') NOT NULL, prostatus enum('Libre', 'Ocupado') NOT NULL )";
But i cant get the name to come up there.... NO IDEA... I have tryed echo.. print... everything. Im not sure i am carrying the info from one page to the other corrently and Im not sure as it is in a 'result' varible that it will work that way... If I write it in manually there... the table is created.
Please help!!
Thanks
Rachel 
|