Welcome to WebmasterWorld Guest from 54.224.103.186

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)

Junior Member

10+ Year Member

joined:May 23, 2005
posts:93
votes: 0


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)

Senior Member

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

joined:Mar 30, 2003
posts:3719
votes: 0


$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);

dc

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

Junior Member

10+ Year Member

joined:May 23, 2005
posts:93
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members