Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Can someone recommend a customizable contact form, please? Reply To: Can someone recommend a customizable contact form, please?

#172788
__
Participant

Hi Michael,
Assuming the path is correct,

include_once "$_SERVER['DOCUMENT_ROOT'].'form-test/class/contactMichael1961.php';

should be

include_once "{$_SERVER['DOCUMENT_ROOT']}/form-test/class/contactMichael1961.php";

or

include_once $_SERVER['DOCUMENT_ROOT']."/form-test/class/contactMichael1961.php";

Look at the differences in how the strings are written (especially the " (quote marks), and how to use {} (curly brackets) for complex variables inside of a string).

There may well be other errors, but we’d need to see the error log/messages to find them.

For verifying the issue from our end we created a “info.php”

Is this file still on your server, where we can see it?

If not, could you create a php script on your server with this:

<?php
print phpinfo();

and post a link to it (I’ll let you know as soon as I’ve looked at it, so you can remove it)?