Jump to content

PHP site will not work with PHP recommended/dist settings


HGeneAnthony

Recommended Posts

I'm doing some work for a company which uses a PHP inventory program ran by a local shop. Basically, I grabbed a copy of the program from them (because it currently only works on the company's intranet) and I need to add some new features. However, I noticed that the site wouldn't work on my home system properly. What I figured out was that the user was passing variables and not setting them when the page reloaded. For example, he would pass id using a post method and then use it on reload without setting it using:

$id = $_POST['id'];

He would just use it. Now the pages will act like nothing is passed. Unfortunately, he wrote a lot of spaghetti code, which is also uncommented, and I can't find where he passed what. I fixed a few of the variables like the one above but I can't find them all and he also mixed it with JavaScript. I would like to know what I need to set to get his code to work the way it did on the intranat. Any help?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.