raadeekaa Posted October 1, 2008 Share Posted October 1, 2008 Hi All, Iam designing a forum page, which has discussion forums like accounting,management etc. In accounting, we have some links like Financial Accounting, Cost Accounting etc., Now, i want the website like this.. When the user comes to forum page(forum.php), he can see menus with links to sub forums like financial accounting. The hyper link to the financial accounting should be like forum.php/accounting/financial_accounting. Likewise, for cost accounting the hyper link should be like forum.php/accounting/cost-accounting. The management forum will have hyperlinks something like forum.php/management/mgmt_accounting. Now, can i write the script for the subforums (mgmt and accounting forums) in the main forum(forum.php) itself? If so, how can i link them? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/126535-php-linking-help-needed/ Share on other sites More sharing options...
sKunKbad Posted October 1, 2008 Share Posted October 1, 2008 You can write the script for the other forums on the forum.php page, and access it by using get or post vars. You will probably need to use get vars with mod_rewrite to achieve the look that you are on a different page. Quote Link to comment https://forums.phpfreaks.com/topic/126535-php-linking-help-needed/#findComment-654396 Share on other sites More sharing options...
hawkenterprises Posted October 1, 2008 Share Posted October 1, 2008 Mod_rewrite won't be the only thing you will need. You will also need some type of mechanism (PATH_INFO) or something else to determine were the files really are versus what the links are. .htaccess is only going to rewrite the url, your code will have to manage the rest. Wordpress achieves this marriage very well take a look at how it runs. Quote Link to comment https://forums.phpfreaks.com/topic/126535-php-linking-help-needed/#findComment-654432 Share on other sites More sharing options...
raadeekaa Posted October 1, 2008 Author Share Posted October 1, 2008 Mod_rewrite won't be the only thing you will need. You will also need some type of mechanism (PATH_INFO) or something else to determine were the files really are versus what the links are. .htaccess is only going to rewrite the url, your code will have to manage the rest. Wordpress achieves this marriage very well take a look at how it runs. Hi, Thanks for the reply.. I did not get it exactly. Can you suggest me some good tutorials on this and also the link for wordpress.. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/126535-php-linking-help-needed/#findComment-654722 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.