Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

problem with php email forms

email forms stop working after installation of another php application



11:54 am on Dec 30, 2009 (gmt 0)

10+ Year Member

I installed 'open realty', a php listing management application in a subfolder of my domain and it seems that as a result none of the email forms I am using for the rest of the site are working any more.
I am using 'dynaform' and am getting errors like this:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/11177/joerg/www.example.com/public_html/dynaform.php on line 240

Warning: array_values() [function.array-values]: The argument should be an array in /home/11177/joerg/www.example.com/public_html/dynaform.php on line 241

These are the 2 corresponding lines in dynaform.php

$incoming_fields = array_keys($HTTP_POST_VARS);
$incoming_values = array_values($HTTP_POST_VARS);

For reasons unknown to me it also said:

You have accessed DynaForm from an external domain - this is not allowed.
I could get rid of this by changing a setting to allow access from external domains, although that does not seem like a good idea for security reasons.

I don't know much about php, any help would be much appreciated!


6:56 pm on Dec 30, 2009 (gmt 0)

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

$HTTP_POST_VARS is deprecated and shouldn`t be used. Its also only accessible in this format if you have register_globals ON. Try this:

$incoming_fields = array_keys($_POST);
$incoming_values = array_values($_POST);



1:06 pm on Dec 31, 2009 (gmt 0)

10+ Year Member

so the istallation had nothing to do with it. everything is working again now, thanks very much!

Featured Threads

Hot Threads This Week

Hot Threads This Month