Hi all,
I just wrote my first polling script and I'm thinking about an easy way to create new polls without having to manually modify the script each time.
The idea I have is to write a script that will write a new polling script based on what info I provide in my form.
Here is my infant idea. Don't laugh if it does not make any sense. 🙂 I'm a newbie trying to get better.
Display a form that will gather info about new poll.
Use that info to create a mysql table.
write script for new poll.
------------
<form action=xx.php3 method=post>
<input type=radio name=radio[] value=title of radio button>
<input type=radio name=radio[] value=title of radio button>
...
<input type=submit name=submit value=submit>
</form>
xx.php3 will gather variables from the form in the form of an array and use it to create a mysql table.
for($i=1, $i < sizeof(radio), $i++)
{
mysql_create_table (
$radio int unsigned not null,
}
id int not null auto_increment unsigned primary key);
Is there a remote chance that this idea will work? A different idea is welcome. Thanks.
Richie.