View Single Post
  #9  
Old 06-16-2007, 05:15 PM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: Adding a form to a static page.

Quote:
Originally Posted by inebriate
when using the php tags in smarty, you dont need to add <?php ?>

so
{php}
<?php include_once('/emformpro/emform_include.php');?>
<?php print get_emform_form("","jute_quotes");?>
{/php}

should be
{php}
include_once('/emformpro/emform_include.php');
print get_emform_form("","jute_quotes");
{/php}

When I try that using,
Code:
<table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td>{php} include_once('/home/virtual/site1/fst/var/www/html/emformpro/emform_include.php'); print get_emform_form("","jute_quotes"); {/php}</td> </tr> </table>
I get this message, "Can't connect to database"
So far the only way I can get it to work is using a Iframe, but there must be a better way.

Thanks
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote