SomeOne help--> Just a tip! I need to do that for school!
Posted: Wed Oct 14, 2009 3:35 am
i have inserted some templates in my database.
Now, on my blog, l will like users to choose their own background templates to the topic they will write.
My problem is, how can the script fetch the template from the database and use the choosen template.
the database is called "myblod_db" and the all the templates are stored in the same table on "templates" wich corresponds to tempid.
Could any one give me a tip'?
Thank you
so this is my html/php dropdown box.
<html>
<body>
<p>Please write down your blog topic and choose from the following free templates.</p>
<input type="text" name="firstname" />
<p>templates<br>
<select name="template">
<option selected="selected" value="cham">chamHop</option>
<option selected="selected" value="cowb">cowB</option>
<option selected="selected" value="ants">Ants</option>
<option selected="selected" value="moon">MoonRaider</option>
</select>
</p>
</body>
</html>
<?php
...................
?>
Now, on my blog, l will like users to choose their own background templates to the topic they will write.
My problem is, how can the script fetch the template from the database and use the choosen template.
the database is called "myblod_db" and the all the templates are stored in the same table on "templates" wich corresponds to tempid.
Could any one give me a tip'?
Thank you
so this is my html/php dropdown box.
<html>
<body>
<p>Please write down your blog topic and choose from the following free templates.</p>
<input type="text" name="firstname" />
<p>templates<br>
<select name="template">
<option selected="selected" value="cham">chamHop</option>
<option selected="selected" value="cowb">cowB</option>
<option selected="selected" value="ants">Ants</option>
<option selected="selected" value="moon">MoonRaider</option>
</select>
</p>
</body>
</html>
<?php
...................
?>