ethan6 Posted January 29, 2010 Share Posted January 29, 2010 Hi, I started a new site at iTronicsRepair.com, but now my php forms won't work for example: old one is at http://myipodbroke.com/repair_info.php (works fine), new one is at http://itronicsrepair.com/repair_info.php (does not work-- it won't send the data through...) any ideas? thanks! Quote Link to comment https://forums.phpfreaks.com/topic/190301-help-so-i-moved-to-a-new-hosting-service-but-now-my-php-form-doesnt-submit/ Share on other sites More sharing options...
wildteen88 Posted January 29, 2010 Share Posted January 29, 2010 Can we see the code? Quote Link to comment https://forums.phpfreaks.com/topic/190301-help-so-i-moved-to-a-new-hosting-service-but-now-my-php-form-doesnt-submit/#findComment-1003959 Share on other sites More sharing options...
mikesta707 Posted January 29, 2010 Share Posted January 29, 2010 code would help. It seems to be getting stuck on the error messages Quote Link to comment https://forums.phpfreaks.com/topic/190301-help-so-i-moved-to-a-new-hosting-service-but-now-my-php-form-doesnt-submit/#findComment-1003960 Share on other sites More sharing options...
citricsquid Posted January 29, 2010 Share Posted January 29, 2010 If I had to guess; register_globals? You'll need to start using $_POST['variable']; Instead of $variable for things passed via the form. Quote Link to comment https://forums.phpfreaks.com/topic/190301-help-so-i-moved-to-a-new-hosting-service-but-now-my-php-form-doesnt-submit/#findComment-1004004 Share on other sites More sharing options...
ethan6 Posted January 30, 2010 Author Share Posted January 30, 2010 Thanks for the replies. I posted the code here: http://itronicsrepair.com/repair_info.txt Thank you again! Quote Link to comment https://forums.phpfreaks.com/topic/190301-help-so-i-moved-to-a-new-hosting-service-but-now-my-php-form-doesnt-submit/#findComment-1004063 Share on other sites More sharing options...
ethan6 Posted January 30, 2010 Author Share Posted January 30, 2010 If I had to guess; register_globals? You'll need to start using $_POST['variable']; Instead of $variable for things passed via the form. if you wouldn't mind, could you explain this a bit more? why exactly do i need to be using global variables vs. not? (i think i do, but it's been a while since i wrote most of the code..) Quote Link to comment https://forums.phpfreaks.com/topic/190301-help-so-i-moved-to-a-new-hosting-service-but-now-my-php-form-doesnt-submit/#findComment-1004065 Share on other sites More sharing options...
PFMaBiSmAd Posted January 30, 2010 Share Posted January 30, 2010 It's not really a matter of global variables (the program variables you are using are global variables) vs something else. The problem is that register_globals magically populated the global/program variables from external data - see this link for more information that has been posted many times over and over - http://www.phpfreaks.com/forums/index.php/topic,285960.msg1356137.html#msg1356137 The code you linked to is using some $_POST and $_GET variables, but not for everything that is coming from your form. Since register_globals have been completely removed in php6, now is the time to start fixing your code. Quote Link to comment https://forums.phpfreaks.com/topic/190301-help-so-i-moved-to-a-new-hosting-service-but-now-my-php-form-doesnt-submit/#findComment-1004067 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.