shadow66142000 Posted April 4, 2007 Posted April 4, 2007 Ok, I have been all over trying to understand this. I have added the register globals off contribution http://www.oscommerce.com/community/contri...egister+globals and then i am wanting to add the basic design pack http://www.oscommerce.com/community/contri...ch,basic+design I have just started reading into PHP so I am still new to it. I added the register globals contribution before installing and I understand that the basic design pack is not coded the work with register globals off. So if there is an update already for the basic design pack to work with it off, then, just point me in the direction. I have trying to understand the POST and GET but it's just not clicking yet. I have read the documentation inside the register globals contribution and it says i can put a piece of code into the bottom of the application_top.php file. I did that and don't exactly understand what that is doing. I think it's supposed to tell me what variables are being used. On another forum I was chatting with someone and got told this: Ok ... when a form is submit the value of the fields are stored in the super globals arrays depending on which method is used to submit the form they are either stored in the $_POST array or the $_GET array. if you had a form .... <form action="somefile.php" method="post"> <input type="text" name="field1"> <input type="submit" name="submit"> When this form is submit then the varibles from the fields will be stored in the $_POST global. if register_globals is set to on then you can access the value of the textfield simply by echo $field1; if they are turned off you have to do . echo $_POST["field1"]; I hope this is clear .... i cant fix the code above as i dont know which variables are sent by request and which are not ... you will have to check the form submiting to this page and change the variables according to the form's request method. Like I said, I am new to PHP. I can usually pick things up very quickly, just something isn't clicking here. Hope some can help. Thanks in advance. Quote
Guest Posted April 4, 2007 Posted April 4, 2007 I have just started reading into PHP so I am still new to it. I added the register globals contribution before installing and I understand that the basic design pack is not coded the work with register globals off. Perhaps I am missing something but which part of the basic design pack is not compatible with the register globals off you think? Can you post the code you're seeing the problem? Quote
shadow66142000 Posted April 4, 2007 Author Posted April 4, 2007 Perhaps I am missing something but which part of the basic design pack is not compatible with the register globals off you think? Can you post the code you're seeing the problem? So after installation I added the register globals off contribution. From there, I added the basic design pack contribution. Then I added a product catagory and a couple of products to that catagory (this is a photo studio site only consisting of my prints). Then when i go to view the products on the site they are not there. The top title says "Lets see what we have here" with nothing below it. It also loses the footer and the right side bar. I can still go and view the products that came bundled with OSC, just not the ones I am adding afterwards. So, I guess I don't know that it is the register globals contribution I came to that conclusion on my own. I know that if install OSC and just enable register globals in the php.ini and install the basic design pack I don't have any problems. I appreciate you helping. Quote
shadow66142000 Posted April 4, 2007 Author Posted April 4, 2007 I do see them just fine in the admin control panel. Quote
Guest Posted April 5, 2007 Posted April 5, 2007 So after installation I added the register globals off contribution. From there, I added the basic design pack contribution. Then I added a product catagory and a couple of products to that catagory (this is a photo studio site only consisting of my prints). Then when i go to view the products on the site they are not there. The top title says "Lets see what we have here" with nothing below it. It also loses the footer and the right side bar. I can still go and view the products that came bundled with OSC, just not the ones I am adding afterwards. So, I guess I don't know that it is the register globals contribution I came to that conclusion on my own. I know that if install OSC and just enable register globals in the php.ini and install the basic design pack I don't have any problems. I appreciate you helping. when you install modules/contributions make sure you follow the manual instructions. Do not override files unless explicitly it is stated in the contribution documentation. The problem might be with the basic design pack, do you have a link to your site's product page to see the problem? If it loses the right side and footer means the main page or one of the right side boxes has the problem. And it should be fixed. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.