c++ Posted July 22, 2005 Report Share Posted July 22, 2005 Kā var izveidot,piemēram, šādu linku: www.mansdomeins.lv/index.php?id=4 vai ?pg=13 vai ?action=view vai kā tamlīdzīgi? Meklējos viskautkur bet neatradu... :( Link to comment Share on other sites More sharing options...
Grey_Wolf Posted July 22, 2005 Report Share Posted July 22, 2005 Kā var izveidot,piemēram, šādu linku: www.mansdomeins.lv/index.php?id=4 vai ?pg=13 vai ?action=view vai kā tamlīdzīgi? Meklējos viskautkur bet neatradu... :( 19711[/snapback] hmm... nu teiksim njemam teksta redaktoru un rakstam <a href='www.mansdomeins.lv/index.php?id=4'> bla bla </a> kaads jautaajums taada atbilde :P Link to comment Share on other sites More sharing options...
c++ Posted July 22, 2005 Author Report Share Posted July 22, 2005 Nu jā, to jau katrs zin, bet kā otrā galā? Kur tā lapa pienāk? Link to comment Share on other sites More sharing options...
v3rb0 Posted July 22, 2005 Report Share Posted July 22, 2005 njemam no notepada, nokopeejam no pirmaa gala to linku un iekopeejam otraa galaa! :D bet ja par jautaajumu.. tad ko tu domaa ar otru galu - serveri? tad palasi par echo piem. echo 'index.php?page='.$page_id; Link to comment Share on other sites More sharing options...
Grey_Wolf Posted July 22, 2005 Report Share Posted July 22, 2005 Nu jā, to jau katrs zin, bet kā otrā galā? Kur tā lapa pienāk? 19713[/snapback] lapa nekur nepienaak :lol: :lol: :lol: vilciens/autobuss var pienaakt :lol: kaa bija uz servera taa paliek uz servera (ja vien netiek paaradreseeta uz citu serveri) :P Link to comment Share on other sites More sharing options...
c++ Posted July 22, 2005 Author Report Share Posted July 22, 2005 lapa nekur nepienaak :lol: :lol: :lol: vilciens/autobuss var pienaakt :lol: kaa bija uz servera taa paliek uz servera (ja vien netiek paaradreseeta uz citu serveri) :P 19716[/snapback] :lol: Metro arī pienāk :lol: njemam no notepada, nokopeejam no pirmaa gala to linku un iekopeejam otraa galaa! bet ja par jautaajumu.. tad ko tu domaa ar otru galu - serveri? tad palasi par echo piem. echo 'index.php?page='.$page_id; Mēģināšu! :) Link to comment Share on other sites More sharing options...
ohmygod Posted July 22, 2005 Report Share Posted July 22, 2005 Jā un palasies arī par $_GET[]; Link to comment Share on other sites More sharing options...
Zoom Posted July 22, 2005 Report Share Posted July 22, 2005 (edited) <?php if ( $_GET['lpp'] == 1 ) { include('html1.htm'); } else if ( $_GET['lpp'] == 2 ) { include('html2.htm'); ... Edited July 22, 2005 by Zoom Link to comment Share on other sites More sharing options...
SkyD Posted July 23, 2005 Report Share Posted July 23, 2005 (edited) Sanjem: <?php $lpp = $_GET['lpp']; switch($lpp) { case '1': include('lapa1.php'); break; case '2': include('lapa2.php'); break; default: include('lapa.php'); break; } ?> Nu šitas der???;PP~~ Edited July 23, 2005 by SkyD Link to comment Share on other sites More sharing options...
c++ Posted July 26, 2005 Author Report Share Posted July 26, 2005 Bāc, laikam tiešām esmu stulbs bet man negāja :ph34r: : Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3840 bytes) in /home/manalapa.lv/public_html/lapa.php on line 8 Link to comment Share on other sites More sharing options...
bubu Posted July 26, 2005 Report Share Posted July 26, 2005 Atmiņa beidzās, kautko pārāk monstrīgu tur daries. Link to comment Share on other sites More sharing options...
Delfins Posted July 26, 2005 Report Share Posted July 26, 2005 Atmiņa beidzās, kautko pārāk monstrīgu tur daries. 19874[/snapback] maršrutka pilna, stāvvietu nav :) PS: gan jau mūžīgs cikls kvadrātā ... Link to comment Share on other sites More sharing options...
c++ Posted August 1, 2005 Author Report Share Posted August 1, 2005 Kā var dabūt lai iepriekšējā forma pazūd, kad nāk jaunā? Riku piemērs: <form name="form1" method="post" action="verify.php?id=cb756p2c7e8pxvtrv7cpcxv473pc7x4"> <p>Verification code: <input type="text" name="code"> </p> <p> <input type="submit" name="Submit" value="Submit"> </p> </form> <p> <?php if ($code == 'CA126') { include ("order.php"); } else { echo ""; } ?> :) Link to comment Share on other sites More sharing options...
Delfins Posted August 2, 2005 Report Share Posted August 2, 2005 Kā var dabūt lai iepriekšējā forma pazūd, kad nāk jaunā? tāpēc arī jālieto templeiti, lai nebūtu čakara ar izvadi. protams ir daudz cilvēki kas paliek pie `php pats ir kā template valoda`,.. bet nu praksē tomēr tiek pierādīts, ka jālieto cits templetu freimworks Link to comment Share on other sites More sharing options...
Lynx Posted August 2, 2005 Report Share Posted August 2, 2005 <PHP if(!isset($_POST['code'])) { echo' <form name="form1" method="post" action="verify.php?id=cb756p2c7e8pxvtrv7cpcxv473pc7x4"> <p>Verification code: <input type="text" name="code"></p> <p><input type="submit" name="Submit" value="Submit"></p> </form> <p>'; } elseif($_POST['code'] == 'CA126') { include('order.php'); } ?> Link to comment Share on other sites More sharing options...
Recommended Posts