|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
php pages
Hai
I an new to PHP and need some help. what i am trying to do is A php page such that it shuld have the some links on the top world | windows | linux | DOS| and every time we click on any of these links the corresponding pages should be displayed...... tat is the a page snippet corresponding the windows url shuld be displayed if i click dos .......... I am calling my tech.php(which contains the above link) into the index.php and my tech.php has the following code tech.php ------------------ <!-- Begin Left Menu --> <?php require("http://host/menus/top.php"); ?> <!-- End Left Menu --> <!-- Begin PhP content --> <div id="tech"> <?php switch($HTTP_GET_VARS['page']) { /* Script courtesy of EvilWalrus.com */ case '0': include ' http://host/content/home.php '; break; case '1':/* Alias for the actual page for security purposes */ include ' http://host/content/win.php '; break; case '2': include ' http://host/content/linux.php '; break; case '3': include ' http://host/content/dos.php '; break; default: include ' http://host/content/home.php '; break; } ?> the top.php --------------- <table width=850 cellpadding="3"> <tr align=center> <td align="center" width=132><a href="counter/exit.cgi?http://host/content/tech.php?page=0" class="postlink">Tech Home</a></td> <td align="center" width=5> | </td> <td align="center" width=132><a href="counter/exit.cgi?http://host/content/tech.php?page=1" class="postlink">Windows</a></td> <td align="center" width=5> | </td> <td align="center" width=132><a href="counter/exit.cgi?http://host/content/tech.php?page=2" class="postlink" >Linux</a></td> <td align="center" width=5> | </td> <td align="center" width=132><a href="counter/exit.cgi?http://host/content/tech.php?page=3" class="postlink"> DOS</a></td> <td align="center" width=5> | </td> <td align="center" width=302><a href="counter/exit.cgi?http://host/content/tech.php?page=4" class="postlink" > Free Downloadable Programs</a></td> </tr> </table> now the problem is it is not displaying home.php contents even when i have given the full path . and when i click on the links then it take me to the new page with only the top.php and the page which is clicked . I want that it shuld remain in the index.php and only the tech.php shuld change according to the contents ......... if this can be done in HTML how??? any suggestions will be reallly great!!!!!! thanks urs davoood |
|
#2
|
|||
|
|||
|
RE: php pages
hi, have you got that page online somewhere that I can have a look at it , bacause it would make it easyer to understand how your page is built.
|
|
#3
|
|||
|
|||
|
RE: php pages
ah I just read an older post of your's where you where trying to do more or less the same, now I think I understand a wee bit better how your site looks, but please still post the url if possible
|
|
#4
|
|||
|
|||
|
RE: php pages
try to clarify a bit, what you want to do.. but in this case I suppose the most simple solution for You is to use html <frameset> and <frame> tags.
|
|
#5
|
|||
|
|||
|
RE: php pages
hm I don't get that, the url was posted and now it's away again. Why that? Couldn't even have a look at the page.
|
|
#6
|
|||
|
|||
|
link
Hai the link to my page is I am talking about goes is here
http://sai.zer0host.com/tech.php?page=tstuff I will really appreciate any kind of suggestions Thanks a lot urs sai |
|
#7
|
|||
|
|||
|
RE: php pages
ok, at the moment when I click one of the top things, it seems to open the same window new again.
Is Quote:
the home.php? and does allways everything on the page reload when clicking a link on the top? |
|
#8
|
|||
|
|||
|
yes sir
thats what i am trying to correct.
I want that when i click on the corresponding links i shuld get the pages right but it always shows the same page. can u help me out |
|
#9
|
|||
|
|||
|
edit
can any one suggest any code for that the way to do that so that when u click on the corresponding link the corrsponding page is displayed
thanks urs sai |
|
#10
|
|||||
|
|||||
|
RE: php pages
Try this as tech.php
php Code:
|
|
#11
|
|||
|
|||
|
RE: php pages
Well, I can understand.. do you mean something like I did in my website.. Layout stays the same in everypage, but
content changes. http://kopikade.lk Check it out!!! |
|
#12
|
|||
|
|||
|
Thanks
Thanks everyone I figured it out how to do it!!!!!!!
thanks to subhash and Mr.dart urs sai |
|
#13
|
|||
|
|||
|
RE: php pages
No prob, that's our job to help
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > php pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|