mostwantedunm Posted September 9, 2006 Share Posted September 9, 2006 [b]Hello i need help to encoding links .... like i saw many websites having links in their website like this www.website.com/?=hello.php or www.website.com/?area=contactus&ext=php and like this too www.website.com/index.php?=contact.php ... I need this module or something in my HTML based website please help thanks and let thee answer know @unm90@hotmail.com or on this forum thanks![/b] Quote Link to comment https://forums.phpfreaks.com/topic/20228-encoding-web-links/ Share on other sites More sharing options...
AndyB Posted September 9, 2006 Share Posted September 9, 2006 I'm not sure what the good news is, but the bad news is that a 'module' doesn't exist and that if you have an html-based web site, then php isn't going to be much use to you.Perhaps you could explain [b]why[/b] you think you need to do this as well. Quote Link to comment https://forums.phpfreaks.com/topic/20228-encoding-web-links/#findComment-88978 Share on other sites More sharing options...
coldkill Posted September 9, 2006 Share Posted September 9, 2006 With encoding links you just need to have a normal hyperlink point to www.domain.com/index.php?whatever=blah. Within the PHP have something like:[code]$link = $_REQUEST['whatever'];include $link.'.php';[/code]That's the simplest way of doing it. There are more complicated ways which include using a database to check that the page exists etc. You will however need to use a .php page and not just a standard .htm or .html. Hope that helps,Cold Quote Link to comment https://forums.phpfreaks.com/topic/20228-encoding-web-links/#findComment-88990 Share on other sites More sharing options...
mostwantedunm Posted September 11, 2006 Author Share Posted September 11, 2006 [quote author=coldkill link=topic=107471.msg431238#msg431238 date=1157822305]With encoding links you just need to have a normal hyperlink point to www.domain.com/index.php?whatever=blah. Within the PHP have something like:[code]$link = $_REQUEST['whatever'];include $link.'.php';[/code]That's the simplest way of doing it. There are more complicated ways which include using a database to check that the page exists etc. You will however need to use a .php page and not just a standard .htm or .html. Hope that helps,Cold[/quote]Thanks for your reply.... Please explain me by giving an example page thankyou very much... please mail me [b]REMOVED BY OBER[/b] THANKS! Quote Link to comment https://forums.phpfreaks.com/topic/20228-encoding-web-links/#findComment-89880 Share on other sites More sharing options...
ober Posted September 11, 2006 Share Posted September 11, 2006 Please note: your thread title has been changed. Please do not use ALL CAPS to make your thread stand out. Also, it is unnecessary to bold all of your responses.Also, please do not request emails to yourself from these forums. The help should remain in this thread or on these boards. Your email address has been removed. Quote Link to comment https://forums.phpfreaks.com/topic/20228-encoding-web-links/#findComment-89884 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.