473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

php code which works in one server doesn't work on another server

hi guys ,
i have developed a website which works fine in one server but not working in another server.
the problem is i have a button which clears up the session variables that is not working properly.
here is the code:
[php]
if(($clear == 'Clear'))
{

$_SESSION["data_info"] = "";
$_SESSION["oper_info"] = "";
$_SESSION["head_info"] ="";
$_SESSION["tablename"] ="";

$_SESSION["ndata_info"] = "";
$_SESSION["noper_info"] = "";
$_SESSION["nhead_info"] ="";
$_SESSION["ntablename"] ="";
$countFields = "";

$_SESSION["app_cri"] ="";
$_SESSION["ind_cri"] ="";
$_SESSION["sub_cri"] ="";
$_SESSION["mat_cri"] ="";
$_SESSION["ctc_cri"] ="";
$_SESSION["ywc_cri"] ="";
$_SESSION["pla_cri"] ="";
$_SESSION["sta_cri"] ="";
$_SESSION["ass_cri"] ="";
$_SESSION["org_cri"] ="";
$_SESSION["date_cri"] ="";

$_SESSION["oper_app"] ="";
$_SESSION["oper_ind"] ="";
$_SESSION["oper_sub"] ="";
$_SESSION["oper_mat"] ="";
$_SESSION["oper_ctc"] ="";
$_SESSION["oper_ywc"] ="";
$_SESSION["oper_pla"] ="";
$_SESSION["oper_sta"] ="";
$_SESSION["oper_date"] ="";
$_SESSION["oper_ass"] ="";
$_SESSION["oper_org"] ="";

$_SESSION["data_app"] ="";
$_SESSION["data_sub"] ="";
$_SESSION["data_mat"] ="";
$_SESSION["data_ind"] ="";
$_SESSION["data_ctc"] ="";
$_SESSION["data_ywc"] ="";
$_SESSION["data_pla"] ="";
$_SESSION["data_sta"] ="";
$_SESSION["data_sele"] ="";
$_SESSION["data_ass"] ="";
$_SESSION["data_org"] ="";

}

<td align="center"><input type="submit" name="clear" value="Clear" size="40" ?>">[/php]
the server which works fine has the following version
php 4.4.4
mysql 4.1.22-standard
apache 1.3.37

the server which doesn't work has the following version
php 4.4.8
mysql 4.1.22-standard
apache 2.0.63

cud anyone help me
Mar 24 '08 #1
4 1376
ronverdonk
4,258 Expert 4TB
We can only help you when you adhere to the Posting Guidelines! Next time enclose your code within the appropriate code tags!

moderator
Mar 24 '08 #2
ronverdonk
4,258 Expert 4TB
Is your problem that your button does not work or that the $_SESSION variables are not cleared? If the button does not work, show the button processing code. And this time within code tags.

Ronald
Mar 24 '08 #3
Markus
6,050 Expert 4TB
You posted pretty much the same question here

What is $clear?

Does as satas said in the other post - it seems you are relying on register_globals which isn't on.

Regards.
Mar 24 '08 #4
Thank you very much Markus it really worked out.
You posted pretty much the same question here

What is $clear?

Does as satas said in the other post - it seems you are relying on register_globals which isn't on.

Regards.
Mar 25 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
12
by: Steven T. Hatton | last post by:
This is something I've been looking at because it is central to a currently broken part of the KDevelop new application wizard. I'm not complaining about it being broken, It's a CVS images. ...
1
by: DiskMan | last post by:
System: Redhat 7.2 Kernel-2.6.11.8 GCC-3.4.3 CCC-6.5.9 Binutils-2.15 Make-3.80 GTK/GLIB-2.6.7 For some reason my Linux box is suddenly having issues trying to read ;
14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
192
by: Vortex Soft | last post by:
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
6
by: TPJ | last post by:
Help me please, because I really don't get it. I think it's some stupid mistake I make, but I just can't find it. I have been thinking about it for three days so far and I still haven't found any...
6
by: nild | last post by:
Hello i have a strange problem. I'm using LogonUser to impersonate the user under which my program must run. On Win XP or Server 2003 it works. But on 2000 it doesn't. So i found out, to set...
27
by: Jon Slaughter | last post by:
Can I modify code that I have included using <?php include("../Index.php"); ?> The Index.php file contains links that need to be modified to work. Index.php is basically an html file uses a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.