Re: Creating pages with PHP instead of just HTML
I would suggest three files.
1) quote.php [Contains any php code that may be required to display, such as pulling variables from the DB. Sets $main and other stuff]
2) quoterequest.php [Contains the mailer. Put in xcart root]
3) quote.tpl [skin1/customer/ and includes the form]
quote.php has logic for displaying the page. Sets the $main var. Pushes rest into $smarty
quote.tpl shows on quote.php after modification to home_main.tpl. This file also contains the html form which has the action set as quoterequest.php
quoterequest.php accepts the vars and sends the mail
__________________
- Shane Munroe
|