Navigation & PHP
Posted: Mon Aug 27, 2007 10:20 am
Ok, due to the nature of this question I've been unable to locate any answers that suit my needs over the past 2 days. I've searched google, php.net, and various other guide page web sites to no avail.
My question is regaurding php & navigation bars on web sites. A friend of mine had built a web site ages ago but I can't find the source code. The page had a navigation bar using only html, no javascript. It kept the same url without any extras (Such as ?variable=value), and was able to pass data to the page. The purpose for this was to use a single php file with multiple "Sections" and depending on the link that was selected a different "Section" would be echo'd on the body of the page.
I want to design a similar such instance, and like his old code I wanted to use regular html, no javascript and if I can help it no forms. I just want basic <a href=''> type tags that pass information along so when the page reloads it will bring up a different subject based on which link was selected.
I've come accross various scripts about forms & javascript submit functions, I don't mind using a form, but I do not want any javascript involved, it seems unnecissary. I am not sure if I'd add additional elements to the <a> tag such as name & value, or if I'd retreive those values with $_POST or another method. I know how to aquire information via $_POST and $_GET as well as use of sessions, but I am absolutely clueless as to how we did this before.
I don't mind using multiple php files or iframes, but for the purposes of expirmentation & efficiency I'd like to know the alternatives. There has to be a way to pass data without using the url to do so, having goofy id values in the url gets annoying to me.
Thanks in advance,
Casey D.
My question is regaurding php & navigation bars on web sites. A friend of mine had built a web site ages ago but I can't find the source code. The page had a navigation bar using only html, no javascript. It kept the same url without any extras (Such as ?variable=value), and was able to pass data to the page. The purpose for this was to use a single php file with multiple "Sections" and depending on the link that was selected a different "Section" would be echo'd on the body of the page.
I want to design a similar such instance, and like his old code I wanted to use regular html, no javascript and if I can help it no forms. I just want basic <a href=''> type tags that pass information along so when the page reloads it will bring up a different subject based on which link was selected.
I've come accross various scripts about forms & javascript submit functions, I don't mind using a form, but I do not want any javascript involved, it seems unnecissary. I am not sure if I'd add additional elements to the <a> tag such as name & value, or if I'd retreive those values with $_POST or another method. I know how to aquire information via $_POST and $_GET as well as use of sessions, but I am absolutely clueless as to how we did this before.
I don't mind using multiple php files or iframes, but for the purposes of expirmentation & efficiency I'd like to know the alternatives. There has to be a way to pass data without using the url to do so, having goofy id values in the url gets annoying to me.
Thanks in advance,
Casey D.