Any differences with single or double quotes in the include.
No, PHP treats quotes and apostrophes the same. HTML on the other hand does not. thus if you do this:
echo "<form name='someName'>";
HTML will not like that. Moreover you can not use double quotes as that would mean you end the string output such (ie: "<form name="someName">"). You can however escape string "<form name=\"someName\">". But that just adds useless typing, it's just better to do:
echo '<form name="someName">';
As for the include("") buisness, you may want to try putting a period in from of the relative path:
include('./simp/mailrob.php');
Regarding the include path within the function itself, two things.
You may want to re-look the way you do that, but if you can't the awnser is:
When you include a file in PHP, it is like the file was hard coded into the calling file. Thus any files that are called without absolute paths ("http://XXX.XXXXX.XXX") ie. Relative paths ("./XXX/XXX.XXX") will be treated as though they are called from the calling file.
This causes all sorts of include errors when calling files that are in files that were called from another script in another directory.
Hope this helps,
Farius