Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Button not recognized
Old 07-17-2005, 10:31 PM PHP Button not recognized
Junior Talker

Posts: 2
Trades: 0
This is strange. I have a simple PHP program which works just fine. I moved it to a new machine where I just installed PHP and the program doesn't work. In debugging the program on the new machine, the problem is that it isn't recognizing the button when it is pressed. I put debug code like if (isset($A1)) echo "set"; else echo "not set";
When I press the button, I get "not set".

What is odd is that this works fine on my other computer.
mpiaser is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-18-2005, 05:14 AM
Enigmatic's Avatar
Registered User

Posts: 86
Location: No Fixed Abode
Trades: 0
If you are reffering to input fields using the isset method try:

if(isset(['field_name'])) {
condition(s)
};
Enigmatic is offline
Reply With Quote
View Public Profile
 
Old 07-18-2005, 09:18 AM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Does $A1 get set by submitting a form via POST or using GET vars? It is possible that register globals was on on your original machine, and off on the new one. With register globals off, you must get the POST variables as follows :

PHP Code:
$A1 $_POST['A1']; 
or just use the _POST array each time around:

PHP Code:
if(isset($_PST['A1'])) {
echo 
"set";
}
else  echo 
"not set"
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 07-18-2005, 01:26 PM
asm
Extreme Talker

Posts: 217
Location: UK.Lancashire(true)
Trades: 0
I would say that A1 is the button name, could you please post the code that reads
$A1= $_post['A1'];
if you don’t have one then add it. if you don’t have it then problem is probably that, on the working machine superglobals is on and on this one where it isn’t working it is off (check the php.ini), it should always be off as it is now for security.
asm is offline
Reply With Quote
View Public Profile Visit asm's homepage!
 
Old 07-18-2005, 01:30 PM
asm
Extreme Talker

Posts: 217
Location: UK.Lancashire(true)
Trades: 0
sorry 0beron there was a time issue there lol
asm is offline
Reply With Quote
View Public Profile Visit asm's homepage!
 
Reply     « Reply to PHP Button not recognized
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28432 seconds with 12 queries