PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 30th, 2006, 07:26 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
variables are ignored

I have a php script that worked fine on a random php server that I used. Now, however, I have installed php on my own computer and the script seems to work fine, but it just ignores the values I entered in a form. When I enable all error messages, I get the message that the variables are not defined, but I did not have this problem when I used this php web server.

It seems that I have to configure php differently, but how?

Marco

Reply With Quote
  #2  
Old August 30th, 2006, 09:36 PM
instigator instigator is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Maryland
Posts: 1,158 instigator User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 20 m 13 sec
Reputation Power: 3
RE: variables are ignored

first thing that comes to mind is that your script might be assuming register globals is turned on. if your old server had it turned on, but your new server has it off, the variables wouldn't work. how is the script getting the variables in from the form?

i'm guessing it isn't like this:

$variable = $_POST['form_field_name_here'];

let me know what you find out...

Reply With Quote
  #3  
Old August 31st, 2006, 06:16 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: variables are ignored

I assume you are referring to the line

register_globals = on/off

in my php.ini? In my case this is set to off.

Marco


Reply With Quote
  #4  
Old August 31st, 2006, 01:32 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: variables are ignored

I switched it on and it worked!

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > variables are ignored


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway