Solved

mysql / php form works on internet but not on intranet

Posted on 2011-09-18
4
392 Views
Last Modified: 2012-05-12
I am continuing my attempt to port an established web site with mysql backend to an intranet site.  To date I have established the database and web site, with tables and data, on a stand-alone Windows 7/Wamp setup.

The intranet web site functions correctly.  I can access the database from phpmyadmin however, when I attempt to use the intranet form (php/html) to access the database I am getting an "Undefined variable" error returned.

I have made several corrections based on the "Experts" feedback.  I now need some additional assistance


Specifics:

      Internet:      MySQL 5.0, PHP 5, Apache on Linux Server

      Intranet:      MySQL 5.0.7, PHP 5.3.5, Apache 2.2.17, on Windows 7


Error:

      Notice: Undefined variable: HTTP_POST_VARS in C:\wamp\www\part\edit_eTicket2-5.php on line 69


68. $Message = "";
69.     if (!is_array($HTTP_POST_VARS))
70.     return;
71. reset($HTTP_POST_VARS);

Open in new window

0
Comment
Question by:dibrandt
  • 2
4 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36557794
$HTTP_POST_VARS was deprecated and replaced by $_POST in PHP 4.1.  It may be gone as of PHP 5.3.  http://www.php.net/manual/en/reserved.variables.post.php
0
 
LVL 1

Expert Comment

by:jastacdoss
ID: 36557798
$HTTP_POST_VARS is not a super-global and is deprecated in newer versions of PHP. You should use $_POST.
0
 

Author Closing Comment

by:dibrandt
ID: 36562341
Thanks!

I guess I need to start using the on-line resources, instead of the PHP 6 printed version.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36562585
You're welcome.  Apparently PHP 6 became PHP 5.3 after they made some adjustments so I think I'd dump that PHP 6 doc.  The online docs for PHP are about the best on the web for any language that I know of.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now