homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

problem with php email forms
email forms stop working after installation of another php application

 11:54 am on Dec 30, 2009 (gmt 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)

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

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved