Link to home
Start Free TrialLog in
Avatar of manrippo
manrippo

asked on

web Page change without .htm

I am trying to build a web site with dynamic page changing. I mean that I don't want to create each page with ".htm".

Can I do like.....

when I click menu on top of my web page, that page is changed by CGI code. It is like a built by template.

That site will ahve same format like picture on top and board at bottom.
ASKER CERTIFIED SOLUTION
Avatar of Promethyl
Promethyl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
appears to be a typo:
switch($_GET[type]) {

must be:
switch($_GET[$type]) {
Avatar of manrippo
manrippo

ASKER

For example

http://www.aaa.com/sitemap.asp?id=Manage%26nbsp%3BAccount

http://www.aaa.com/sitemap.asp?id=Manage%26nbsp%3BSite

This is the thing that I have asked you guys!!

If you see the addresses, they are just differnet at the end of the addresses like "Account" and Site".

How could I do that by coding?

Can I use PHP or asp? Something else?
seems strange your url, maybe could be:
http://www.aaa.com/sitemap.asp ?id=Manage&type=Account
Nah, it wasn't a typo. Bad form, sure, but not a typo. Since $type is empty, you are sending $_GET[] with that code, which results in nothing. I was looking for a get variable named type. Diablo has been on me to properly quote vars, and I missed the boat again.

<?
switch($_GET['id']) {
case 'Manage':
          // do management stuff
          break;
case 'View':
          // do a stuff
          break;
case 'Nothing':
          // do a stuff
          break;
}

?>
Where do I put those code? Each page or ?