denoteone Posted November 21, 2008 Share Posted November 21, 2008 I just turned off my global variables and now I am going back to fix a few issues. I have the following line of code in a form... <input type="hidden" name="src_file" value="<?php echo $PHP_SELF?>"> but when it passes the variable I am not getting the page address. does this have something to do with turning off global variables? Quote Link to comment https://forums.phpfreaks.com/topic/133665-solved-turned-of-global-variables-now-i-have-one-issue/ Share on other sites More sharing options...
Maq Posted November 21, 2008 Share Posted November 21, 2008 Yes, $PHP_SELF is probably a globar var. Try this: Quote Link to comment https://forums.phpfreaks.com/topic/133665-solved-turned-of-global-variables-now-i-have-one-issue/#findComment-695489 Share on other sites More sharing options...
denoteone Posted November 21, 2008 Author Share Posted November 21, 2008 fixed it right up thanks. one more question will echo " <META HTTP-EQUIV = 'Refresh' Content = '2; URL = /index.html'>"; work to refresh them after the mail function is sent? Quote Link to comment https://forums.phpfreaks.com/topic/133665-solved-turned-of-global-variables-now-i-have-one-issue/#findComment-695503 Share on other sites More sharing options...
denoteone Posted November 21, 2008 Author Share Posted November 21, 2008 answered my own questions. Thanks everyone. Quote Link to comment https://forums.phpfreaks.com/topic/133665-solved-turned-of-global-variables-now-i-have-one-issue/#findComment-695504 Share on other sites More sharing options...
Maq Posted November 21, 2008 Share Posted November 21, 2008 Global variables is a very bad thing. They have been eliminated from the newest version of PHP. You may want to look at your global_vars and ensure they are not being used elsewhere to cause further problems. Quote Link to comment https://forums.phpfreaks.com/topic/133665-solved-turned-of-global-variables-now-i-have-one-issue/#findComment-695509 Share on other sites More sharing options...
nitation Posted November 21, 2008 Share Posted November 21, 2008 Note that this is not the only problem you gonna encounter as days goes by. For now, follow Maq's advice. Quote Link to comment https://forums.phpfreaks.com/topic/133665-solved-turned-of-global-variables-now-i-have-one-issue/#findComment-695512 Share on other sites More sharing options...
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.