I am a newbie here, so please bare with me.
I am trying to create a new snippet that calls a php page located on a different location on the same server. I realize I could just use a wrapper, but I'm trying to embed the code because I believe that this would be great way to create simple as well as sophisticated contact forms using the a nifty little program.
Anyway, here is the code I am using:
//Embed form // Usage: [[contact-form]] $contact_form = 1; // set desired form number. $contact_form_path = '/home/XYZ/public_html/my-folder/'; // set path to /contact-files/ with slash on end. require $contact_form_path . 'contact-form-run.php';
As you can see, the snippet is simply requiring to run a particular php script (contact-form-run.php) which contains a form created using a form-creation script. When I place this snippet on a page within etomite, it does work perfectly, except that the form (the content of the snippet), appears before the HTML tag at the top of the page instead of the content of the page.
Can anybody tell me what I'm doing wrong? If this works, I would submit as a nice way to add forms to etomite.
Thanks,
Rodrigo










