View Single Post
  #9  
Old 09-06-2010, 02:31 PM
 
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

Quote:
Originally Posted by crcool75
Ok, I see your logic. However, I don't quite understand how you would access this new page. Would I be creating a static page? How would the web server know to display the new page? Would it be a link something like /home.php?mode=quote ?

quote.php is what is accessed by the user. It will be accessed via http://www.exaple.com/quote.php . In the quote.php file you will need to set the $main var like this:
Code:
$smarty->assign("main","quotereq");

Then in home_main.php you can set an elseif like this:

Code:
{elseif $main eq 'quotereq'} {include file="customer/main/quote.tpl"}

So now you got the display working.



Also, you may actually want to move the quoterequest.php which sends the email to a different directory such as /include/ so people cant access it directly.
__________________
- Shane Munroe
Reply With Quote