Dear all,
To save building a contact form (I’m no php coder) I repeated my Dreamweaver site code inside MODx Revo 2 but it will not work. Blank area where form should be.
I have a contact page resource containing form snippet:
<div align="center">
[[contactForm]]
</div>
The ’contactForm’ snippet code for my encoded php form file is:
<?php
$file=’assets/templates/form.php’;
include($filename);
I have the <base href="[[++site_url]]" /> set in my base template.
How to I modify my snippet for call to find my file? Sorry for the newbie stuff here. Been searching posts and reading lots of Evo snippet stuff but nothing obvious enough for me to solve.
Richard
Hong Kong
Wow Shaun,
Thanks for your near instant reply. Very much appreciated.
The code is now finding the file Ok but something odd with file itself now, although it works fine with old html/php site. Below is what I am getting. Is this due to snippet in the db?
Any advice on this, or should I go back to form designer service I have where the compiled code is made? (formdevil.com)
Best regards,
Richard
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\richardentwistle.com\assets\templates\form.php(5) : eval()’d code on line 2373
Richard
Hong Kong