SQL Posted October 11, 2006 Report Share Posted October 11, 2006 jau ieprieks atvainojos par tik stulbu jautajums... ka ieks php izveidot ka html ar freimiem, ka ir viena "bazes" lapa, kurai mainas "vidus". Es izveidoju cilveku registraciju formu, datu atsevisku apskati un datu modificesanas lapinu, bet ka lai visu smuki saliek "kopa"? Palidziet ar padomu, par kadu temu man jameklee informacija Link to comment Share on other sites More sharing options...
andrisp Posted October 11, 2006 Report Share Posted October 11, 2006 (edited) galvenā lapa: <?php $pages = array( 'view' => 'view.php', 'edit' => 'edit.php', 'add' => 'add.php' ); if (isset($pages[$_GET['action']])) { $p = $pages[$_GET['action']]; } else { $p = 'view.php'; } ?> html markaps <?php require($p); ?> html markaps Kautkā tā. Edited October 11, 2006 by andrisp Link to comment Share on other sites More sharing options...
SQL Posted October 11, 2006 Author Report Share Posted October 11, 2006 liels paldies... bet ka sini gadijuma butu javeido linki? Piemeram uz "edit". Vai piem. es nospiezu pogu OK, mainigie tiek nosutiti no add uz view, kur notiek to apstrade. Kaa janorada "view" target vieta, lai atvereros turpat centraa? Link to comment Share on other sites More sharing options...
andrisp Posted October 11, 2006 Report Share Posted October 11, 2006 Īsti nesaprotu, kas tev par problēmu. Link to comment Share on other sites More sharing options...
Paulinjsh Posted October 11, 2006 Report Share Posted October 11, 2006 <a href="http://kautkas.lv/?action=edit">edit</a> Link to comment Share on other sites More sharing options...
Recommended Posts