- form_input.php:
send this form to 'getTemplate.php' for example
<form action="getTemplate.php" method="post">
<!-- username input -->
<input type="text" name="username">
<!-- template selection -->
<select name="chosenTemplate">
<option value="template1">Template1</option>
<option value="template2">Template2</option>
<option value="template3">Template3</option>
<option value="template4">Template4</option>
</select>
</form>
- in 'getTemplate.php' you can work with the posted variables $POST["username"] and $POST["chosenTemplate"] and any other variables you post to that page.
/* includes the chosen template, which is a php-file */
include ($_POST["chosenTemplate"].".php");
of course you should make sure that all offered templates exist, here: template1.php, template2.php, template3.php, template4.php
you can design each template as you like and work on with all posted variables....e.g.
template1.php:
(prints the username bold)
print ("<b>".$_POST["username"]."</b>");
template2.php:
(prints the username italic)
print ("<i>".$_POST["username"]."</i>");
template3.php:
(prints the username underlined)
print ("<u>".$_POST["username"]."</u>");
this is one way to make it.