Looks like you are using a Windows server. I don't really know about the issues with PHP on Windows, although I'm sure that we do have a lot of users that run phpFormGenerator on Windows. Perhaps one of them would be able to help you out. My best guess is that on windows these undefined variables are called something else (or accessed in some other way). All you would need to do is replace the variables with correct ones and everything should be functional.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am a newbie with phpformgenerator and I immediately got a problem :)
I managed to create the form, no problems there, but using it was another story.
As I finished filling my form and pressed suply I got this error
Undefined variable: SERVER_NAME in C:\Inetpub\modxtesti\phpform\use\Testi1\process.php on line 16
And
Undefined variable: PHP_SELF in C:\Inetpub\modxtesti\phpform\use\Testi1\process.php on line 16
As I'm not too familiar with PHP either I have no clue where to look for the answer. I got no where trying to look this up in google.
Thanks in advance
-JK-
Looks like you are using a Windows server. I don't really know about the issues with PHP on Windows, although I'm sure that we do have a lot of users that run phpFormGenerator on Windows. Perhaps one of them would be able to help you out. My best guess is that on windows these undefined variables are called something else (or accessed in some other way). All you would need to do is replace the variables with correct ones and everything should be functional.
If you are not allowing file uploads remove the line (comment out) beginning with
$where_form_is="http".