[PHP] 4.04 -- 4.1.2 incompatible
Hi Can someone please tell me what settings to check for on 4.1.2 in order to ensure that scripts that runs on 4.0.4 will run on 4.1.2? I HAVE checked registered_globals = on, but I still get variables that are not passed on via URL and form submits. The app has a login form that submits to an action page, on the action page I generate a link that goes to another form, I append the username and password to the end of the URL of the link on the action page, and then create hidden fields that echo the username and password in the subsequent form to be passed along with the extra form field to the last page. This whole process works 100% on 4.0.4, but breaks at the second page on 4.1.2 (ie, it DOESN't pass the username and password to the action page from the form fields). I need to resove this, as I have lots of applications that was written in this way, and are currently working, but want to upgrade the server to RedHat 7.3 that comes with 4.1.2 and don't want to end up with a bunch of broken apps. I know it's not the correct way to have coded, but it's done now, and for now, I won't mind to have register_globals = On, although THAT doesn't seem to be the solution... Please advise. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 4.04 -- 4.1.2 incompatible
On Tue, Aug 20, 2002 at 11:28:55AM +0200, Petre Agenbag wrote: Hi Can someone please tell me what settings to check for on 4.1.2 in order to ensure that scripts that runs on 4.0.4 will run on 4.1.2? I HAVE checked registered_globals = on, but I still get variables that are not passed on via URL and form submits. The app has a login form that submits to an action page, on the action page I generate a link that goes to another form, I append the username and password to the end of the URL of the link on the action page, and then create hidden fields that echo the username and password in the subsequent form to be passed along with the extra form field to the last page. This whole process works 100% on 4.0.4, but breaks at the second page on 4.1.2 (ie, it DOESN't pass the username and password to the action page from the form fields). I need to resove this, as I have lots of applications that was written in this way, and are currently working, but want to upgrade the server to RedHat 7.3 that comes with 4.1.2 and don't want to end up with a bunch of broken apps. I know it's not the correct way to have coded, but it's done now, and for now, I won't mind to have register_globals = On, although THAT doesn't seem to be the solution... Please advise. Thanks have you checked that register_globals _is_ actually on? just look at the output of phpinfo(); re, tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 4.04 -- 4.1.2 incompatible
Yes, phpinfo() returns that register globals is ON... On Tue, 2002-08-20 at 11:52, Thies C. Arntzen wrote: On Tue, Aug 20, 2002 at 11:28:55AM +0200, Petre Agenbag wrote: Hi Can someone please tell me what settings to check for on 4.1.2 in order to ensure that scripts that runs on 4.0.4 will run on 4.1.2? I HAVE checked registered_globals = on, but I still get variables that are not passed on via URL and form submits. The app has a login form that submits to an action page, on the action page I generate a link that goes to another form, I append the username and password to the end of the URL of the link on the action page, and then create hidden fields that echo the username and password in the subsequent form to be passed along with the extra form field to the last page. This whole process works 100% on 4.0.4, but breaks at the second page on 4.1.2 (ie, it DOESN't pass the username and password to the action page from the form fields). I need to resove this, as I have lots of applications that was written in this way, and are currently working, but want to upgrade the server to RedHat 7.3 that comes with 4.1.2 and don't want to end up with a bunch of broken apps. I know it's not the correct way to have coded, but it's done now, and for now, I won't mind to have register_globals = On, although THAT doesn't seem to be the solution... Please advise. Thanks have you checked that register_globals _is_ actually on? just look at the output of phpinfo(); re, tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 4.04 -- 4.1.2 incompatible
On Tue, Aug 20, 2002 at 12:01:24PM +0200, Petre Agenbag wrote: Yes, phpinfo() returns that register globals is ON... and does a simple testpage work? test.php ?php echo $hallo; ? http://localhost/test.php?hallo=test should show a page containing the word test re, tc On Tue, 2002-08-20 at 11:52, Thies C. Arntzen wrote: On Tue, Aug 20, 2002 at 11:28:55AM +0200, Petre Agenbag wrote: Hi Can someone please tell me what settings to check for on 4.1.2 in order to ensure that scripts that runs on 4.0.4 will run on 4.1.2? I HAVE checked registered_globals = on, but I still get variables that are not passed on via URL and form submits. The app has a login form that submits to an action page, on the action page I generate a link that goes to another form, I append the username and password to the end of the URL of the link on the action page, and then create hidden fields that echo the username and password in the subsequent form to be passed along with the extra form field to the last page. This whole process works 100% on 4.0.4, but breaks at the second page on 4.1.2 (ie, it DOESN't pass the username and password to the action page from the form fields). I need to resove this, as I have lots of applications that was written in this way, and are currently working, but want to upgrade the server to RedHat 7.3 that comes with 4.1.2 and don't want to end up with a bunch of broken apps. I know it's not the correct way to have coded, but it's done now, and for now, I won't mind to have register_globals = On, although THAT doesn't seem to be the solution... Please advise. Thanks have you checked that register_globals _is_ actually on? just look at the output of phpinfo(); re, tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Thies C. Arnzten - Looking for all sorts of freelance work - just ask.. Whishlist: http://www.amazon.de/exec/obidos/wishlist/AB9DY62QWDSZ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 4.04 -- 4.1.2 incompatible
My oh my OK, can someone help with this one??? My original Form conatined the following: form action=test.php method=POST enctype=multipart/form-data bla, bla And then things broke, so, out of curiosity, I removed the enctype= part, and now it works/ On Tue, 2002-08-20 at 13:05, Thies C. Arntzen wrote: On Tue, Aug 20, 2002 at 12:01:24PM +0200, Petre Agenbag wrote: Yes, phpinfo() returns that register globals is ON... and does a simple testpage work? test.php ?php echo $hallo; ? http://localhost/test.php?hallo=test should show a page containing the word test re, tc On Tue, 2002-08-20 at 11:52, Thies C. Arntzen wrote: On Tue, Aug 20, 2002 at 11:28:55AM +0200, Petre Agenbag wrote: Hi Can someone please tell me what settings to check for on 4.1.2 in order to ensure that scripts that runs on 4.0.4 will run on 4.1.2? I HAVE checked registered_globals = on, but I still get variables that are not passed on via URL and form submits. The app has a login form that submits to an action page, on the action page I generate a link that goes to another form, I append the username and password to the end of the URL of the link on the action page, and then create hidden fields that echo the username and password in the subsequent form to be passed along with the extra form field to the last page. This whole process works 100% on 4.0.4, but breaks at the second page on 4.1.2 (ie, it DOESN't pass the username and password to the action page from the form fields). I need to resove this, as I have lots of applications that was written in this way, and are currently working, but want to upgrade the server to RedHat 7.3 that comes with 4.1.2 and don't want to end up with a bunch of broken apps. I know it's not the correct way to have coded, but it's done now, and for now, I won't mind to have register_globals = On, although THAT doesn't seem to be the solution... Please advise. Thanks have you checked that register_globals _is_ actually on? just look at the output of phpinfo(); re, tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Thies C. Arnzten - Looking for all sorts of freelance work - just ask.. Whishlist: http://www.amazon.de/exec/obidos/wishlist/AB9DY62QWDSZ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 4.04 -- 4.1.2 incompatible
On Tuesday 20 August 2002 22:07, Petre Agenbag wrote: My oh my OK, can someone help with this one??? My original Form conatined the following: form action=test.php method=POST enctype=multipart/form-data bla, bla And then things broke, so, out of curiosity, I removed the enctype= part, and now it works/ php.info - file_uploads Next time read all the releases notes, history, readme, changelog etc *before* you upgrade. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Do not do unto others as you would they should do unto you. Their tastes may not be the same. -- George Bernard Shaw */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 4.04 -- 4.1.2 incompatible
Petre Agenbag wrote: My oh my OK, can someone help with this one??? My original Form conatined the following: form action=test.php method=POST enctype=multipart/form-data bla, bla And then things broke, so, out of curiosity, I removed the enctype= part, and now it works/ Another tip you might find useful if you're writing code that outputs a FORM that posts to itself, is to echo $PHP_SELF instead of hard-coding the target. If you happen to move your code elsewhere in the future, this will save you the time of having to go back and specify a new POST target. drw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] 4.04 -- 4.1.2 incompatible
Another tip you might find useful if you're writing code that outputs a FORM that posts to itself, is to echo $PHP_SELF instead of hard-coding the target. If you happen to move your code elsewhere in the future, this will save you the time of having to go back and specify a new POST target. I've personally had difficulties with this technique, as Netscape browsers didn't return $PHP_SELF the way I had written it. Make sure to make it such that Netscape users can see it too. http://www.faqts.com/knowledge_base/view.phtml/aid/139/fid/6 -Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php