php - Dynamic page within a dynamic generated page -


so have main page dynamic pages. want know how generate dynamic page within generated page. example, www.whatever.com/something.php?q=something?p=something

i want make dynamic page contain other dynamic pages within can switch out content in page.

any ideas?

so page done www.website.com/folder/main.php?c=page1, in div want other content

 <div class="col s9 grey right">     <!-- teal page content  -->     <div class="card-panel z-depth-2">      <div class="row center">                 <div class="col s12">                     <?php  include 'content.php';?>                  </div><!---panel personal stats---->             </div><!---profile container row---> </div>   </div> 

within url i'm trying www.website.com/folder/main.php?c=page1/content/content?q=othercontent

$_get 

search in internet $_get , url parameters, i.e. get url parameter in php

<div class="col s9 grey right"> <!-- teal page content  --> <div class="card-panel z-depth-2">  <div class="row center">             <div class="col s12">                 <?php  include 'content.php';                 if ($_get['c'] == 'page') {                     echo 'ala ma kota';                 } else {                     echo 'ala nie ma kota';                 }                 ?>              </div><!---panel personal stats---->         </div><!---profile container row---> 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -