jeeva Posted January 17, 2007 Share Posted January 17, 2007 hi frnds,i think u can help me,How can i hide the url query?. For exampleurl is [i]www.sitename.com[/i] If i click [i]register.php?uid=5[/i] in the applicationthe url should not be change like [i]www.sitename.com/register.php?uid=5.[/i] the url must be [i]www.sitename.com[/i] even we are in register.php.i have seen some site like this.so i am trying to do the same for my applicationcan i make like this? will u please tell me wt i have to do for this?any help will be appreciated... Quote Link to comment https://forums.phpfreaks.com/topic/34517-url-should-be-same/ Share on other sites More sharing options...
DeathStar Posted January 17, 2007 Share Posted January 17, 2007 [quote]How can i hide the url query?. For exampleurl is www.sitename.com If i click register.php?uid=5 in the applicationthe url should not be change like www.sitename.com/register.php?uid=5. the url must be www.sitename.com even we are in register.php.[/quote]i dont realy know what you mean but.. whats the point of having links if they are'nt supposed to do anything...anyways i think what you're trying to get is:[code]<a href="#">link</a>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/34517-url-should-be-same/#findComment-162599 Share on other sites More sharing options...
linuxdream Posted January 17, 2007 Share Posted January 17, 2007 I think you could do this a few ways:1) Make the link a small form that does a POST request. That way there's no URL data.2) Make a JavaScript function that basically creates and submits a form POST style.3) Design your register page so that it automatically redirects after processing the data.Of all the ways, method1 is, I believe, the most common and easiest. Quote Link to comment https://forums.phpfreaks.com/topic/34517-url-should-be-same/#findComment-162604 Share on other sites More sharing options...
jeeva Posted January 17, 2007 Author Share Posted January 17, 2007 thanks for reply...if i used post method the file name will be display but it should not be.i think by using post method we can avoid just query not file name.i want to avoid the file name and queryfor ur understand see this url.this will eanble u to know wt i am sayingwww.dinamalar.com Quote Link to comment https://forums.phpfreaks.com/topic/34517-url-should-be-same/#findComment-162618 Share on other sites More sharing options...
Jessica Posted January 17, 2007 Share Posted January 17, 2007 You could use htaccess. Quote Link to comment https://forums.phpfreaks.com/topic/34517-url-should-be-same/#findComment-162632 Share on other sites More sharing options...
jeeva Posted January 17, 2007 Author Share Posted January 17, 2007 will u pls tel me clearly... Quote Link to comment https://forums.phpfreaks.com/topic/34517-url-should-be-same/#findComment-162643 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.