View Single Post
  #7  
Old 09-06-2010, 12:34 AM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default 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
Reply With Quote