![]() |
Adding a form to a static page.
Hello,
I am using EternalMart Form Processor Pro and I would like to add a form to a static page. According to the instructions I need to add this include code, Code:
<?php include_once('/home/virtual/site1/fst/var/www/html/emformpro/emform_include.php');?> Code:
<?php print get_emform_form("","myform");?> My question is, where would I need to put the include and would I be able to just put Code:
<?php print get_emform_form("","myform");?> Thanks |
Re: Adding a form to a static page.
Did you try enclosing your php inside a smarty tag?
Code:
{php} |
Re: Adding a form to a static page.
Quote:
I,ll give that a try now and let you know. I tryed putting the include in home.php and then adding the form call to a static page but that did't work. |
Re: Adding a form to a static page.
Quote:
Unfortunately that did not work. All the static page displayed was {php} {/php} |
Re: Adding a form to a static page.
did you enable "Parse Smarty tags in the content of embedded pages" ?
|
Re: Adding a form to a static page.
Quote:
Code:
{php} |
Re: Adding a form to a static page.
I am able to get it to display/work fine using an Iframe.
Code:
<IFRAME border=0 name=emformpro align=center marginWidth=1 marginHeight=1 src="/emformpro/emform.php?formname=jute_quotes" frameBorder=0 width=100% scrolling=no height=700> Thanks |
Re: Adding a form to a static page.
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} |
Re: Adding a form to a static page.
Quote:
When I try that using, Code:
<table width="600" border="0" cellspacing="0" cellpadding="0"> So far the only way I can get it to work is using a Iframe, but there must be a better way. Thanks |
Re: Adding a form to a static page.
try taking out "/home/virtual/site1/fst/var/www/html" in the include so it matches the same src in your iframe
|
All times are GMT -8. The time now is 06:37 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.