Jump to content

URL should be same


jeeva

Recommended Posts

hi frnds,

i think u can help me,

How can i hide the url query?. For example
url is [i]www.sitename.com[/i] If i click [i]register.php?uid=5[/i] in the application
the 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 application

can i make like this? will u please tell me wt i have to do for this?

any help will be appreciated...
Link to comment
https://forums.phpfreaks.com/topic/34517-url-should-be-same/
Share on other sites

[quote]How can i hide the url query?. For example
url is www.sitename.com If i click register.php?uid=5 in the application
the 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]
Link to comment
https://forums.phpfreaks.com/topic/34517-url-should-be-same/#findComment-162599
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/34517-url-should-be-same/#findComment-162604
Share on other sites

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 query

for ur understand see this url.this will eanble u to know wt i am saying

www.dinamalar.com
Link to comment
https://forums.phpfreaks.com/topic/34517-url-should-be-same/#findComment-162618
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.