bre Posted September 11, 2007 Share Posted September 11, 2007 I have some php scripts that work on old server but need changes to work on new server. I use hosting and have VPS servers on both. The script I pass variables to doesn't see them unless I use; $form_name = $_POST["form_name"] I didn't have to do that on old server. Anyone know why I need it now everytime I pass variables to another script? I'm a novice at php scripting. Link to comment https://forums.phpfreaks.com/topic/68782-solved-question-about-psasing-variables-between-scripts/ Share on other sites More sharing options...
pocobueno1388 Posted September 11, 2007 Share Posted September 11, 2007 On your other server they probably had magic_quotes_gpc off. This means that you don't have to define your post/get data with $_POST or $_GET. On your new server they have them on, meaning you do have to define them like you are. In my opinion it is better to have to define them, that way you know exactly where the data is coming from. Link to comment https://forums.phpfreaks.com/topic/68782-solved-question-about-psasing-variables-between-scripts/#findComment-345751 Share on other sites More sharing options...
bre Posted September 11, 2007 Author Share Posted September 11, 2007 Thanks. Link to comment https://forums.phpfreaks.com/topic/68782-solved-question-about-psasing-variables-between-scripts/#findComment-345755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.