Yes, if that is what you want to show. The html (design and fixed data) part of the form can be put directly into the template, and any dynamic data can be displayed through variables set in the php code.
The basic purpose of templating (whether vbulletin or otherwise) is to separate the front end design from the business logic. The template holds just enough code (actually html with conditionals, not programming code) to show whatever needs to be shown. The template is simply 'shown', and that is why you cannot have php code in there.
The vbulletin manual has a section on templates, and reading the default vb templates can be very instructive for newcomers.
--------------- Added [DATE]1246858288[/DATE] at [TIME]1246858288[/TIME] ---------------
This will work:
php:
Code:
$htmlform = "<form>........</form>"
template:
Code:
$header
$navbar
$htmlform
$footer
But that is not how it is intended to be. You are
not supposed to write
any HTML at all in the PHP. Otherwise the whole purpose of templating is defeated.