Cyto Posted October 28, 2010 Share Posted October 28, 2010 Hey, POST and GET was working on my previous hosting, but not on my currently one. Do i need to enable something in php or something else to get it to work. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/ Share on other sites More sharing options...
Pikachu2000 Posted October 28, 2010 Share Posted October 28, 2010 What makes you think there's a problem? Are you getting an error message or something? Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1127786 Share on other sites More sharing options...
PFMaBiSmAd Posted October 28, 2010 Share Posted October 28, 2010 Edit: Basically the same as above ^^^^ What makes you think they are not working? What is your code and the symptoms? Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1127787 Share on other sites More sharing options...
Cyto Posted October 28, 2010 Author Share Posted October 28, 2010 Well, because with POST it was being saved when submit. And with the GET it was displaying the user's name at title of the page(top browser name tab). GET is getting the id of the users and POST is submitting the same page to be saved. Now it doesn't post or get it and i think its a hosting problem, but dunno what would cause it. I am not getting a error message. Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1127789 Share on other sites More sharing options...
Pikachu2000 Posted October 28, 2010 Share Posted October 28, 2010 Have you done anything to debug this? My gut reaction is that your scripts rely on register_globals = On (which is bad), and the new host has register_globals = Off (which is good). Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1127795 Share on other sites More sharing options...
Cyto Posted October 28, 2010 Author Share Posted October 28, 2010 Have you done anything to debug this? My gut reaction is that your scripts rely on register_globals = On (which is bad), and the new host has register_globals = Off (which is good). Yes, register_globals = on by the new host. At the old host is off, so yeah that should be the issue. Mailed the hoster to turn it of. Let you know tomorrow. Thx Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1127797 Share on other sites More sharing options...
PFMaBiSmAd Posted October 28, 2010 Share Posted October 28, 2010 If you post the code, like someone asked, you can probably get an answer 10x faster. Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1127798 Share on other sites More sharing options...
Cyto Posted October 28, 2010 Author Share Posted October 28, 2010 Wye should i post a code if its not a code problem. Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1127801 Share on other sites More sharing options...
pengu Posted October 28, 2010 Share Posted October 28, 2010 It's what we like to call problem solving. We can read your code to isolate (if there is any) errors in the code. If we can't see any errors than it would point to a server side issue. Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1127802 Share on other sites More sharing options...
Cyto Posted October 29, 2010 Author Share Posted October 29, 2010 I found out that get and post isn't the problem or the register_globals. The links that i'm using are friendly(seo) without seo it works It displays the name, but with seo it doesnt work. Someone know wye? Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1128134 Share on other sites More sharing options...
Pikachu2000 Posted October 29, 2010 Share Posted October 29, 2010 You need to add the rewrite rules in .htaccess (something I am definitely no good with). Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1128137 Share on other sites More sharing options...
Cyto Posted October 29, 2010 Author Share Posted October 29, 2010 You need to add the rewrite rules in .htaccess (something I am definitely no good with). I alrdeay have that. It doesn't work with rewrite rule (the link) example/12, but with example.php?id=12 it works. Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1128140 Share on other sites More sharing options...
PFMaBiSmAd Posted October 29, 2010 Share Posted October 29, 2010 Does your new host support URL rewriting? .htaccess is Apache specific. Is the web server an Apache server with the mod_rewrite module installed? Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1128142 Share on other sites More sharing options...
Cyto Posted October 29, 2010 Author Share Posted October 29, 2010 Yes, it is allowed and register_globals is set to On(dunno wye). Its wierd, because: I got 2 pages a profile and a public profile. profile works, but uses session id public profile doesnt work with seo and uses get id. With no seo it works and uses get id so uhh, :-\ Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1128146 Share on other sites More sharing options...
PFMaBiSmAd Posted October 30, 2010 Share Posted October 30, 2010 Are your rewrite rules domain specific and you switched domain names? Frankly, you have not posted any actual information in this thread that would allow someone to directly help you with what you are doing and with what could be causing the symptoms. Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1128298 Share on other sites More sharing options...
Cyto Posted October 31, 2010 Author Share Posted October 31, 2010 Fixed, i looked again and again in .htaccess file. I had the same file name of the rewriterule Quote Link to comment https://forums.phpfreaks.com/topic/217152-post-and-get/#findComment-1128624 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.