Machuss Posted March 14, 2006 Report Share Posted March 14, 2006 man ir problēma ar šādu adresi "index.php?sad=reg", viss ir kaartībā līdz kamēr atrodos tajā, funkcijas strādā līdz netiek ierkastīts lietotājvārds un nospiesta OK poga, man LOGIN lapas dalja ir include un atrodas visās lapās, bet ja atrodos piemēram index.php?sad=reg tilīdz ielogojos tā adrese arkal ir index.php kā novērst adreses maiņu? Link to comment Share on other sites More sharing options...
ohmygod Posted March 14, 2006 Report Share Posted March 14, 2006 VArbūt pamēģini formas action uzstādīt tādu, kāds tev links? Link to comment Share on other sites More sharing options...
Machuss Posted March 14, 2006 Author Report Share Posted March 14, 2006 (edited) VArbūt pamēģini formas action uzstādīt tādu, kāds tev links? tieshi kaa tas buutu "action", nu tas man ir norādīts, bet man ir vairaakas taadas sadaljas ar ?sadala=viens&variaacija=divi ko ar shaadiem linkiem iesaakt? Edited March 14, 2006 by Machuss Link to comment Share on other sites More sharing options...
ohmygod Posted March 14, 2006 Report Share Posted March 14, 2006 ieksh HTML formas taga! <form id="login" name="login" method="post" action="?sad=reg"> ar PHP apskaties to urli, kur atrodies un padod jamo un formas action, vai arii vienkaarshi ieliec # Link to comment Share on other sites More sharing options...
Machuss Posted March 14, 2006 Author Report Share Posted March 14, 2006 Un ko darīt ja sadaļas veidotas šādi? switch ($_REQUEST['sad']) { case 'reg': include_once('register.php'); break; case 'for': include_once('forums.php'); break; default: include_once('sakums.php'); break; } ?> Ir labaaka metode? Link to comment Share on other sites More sharing options...
Blitz Posted March 15, 2006 Report Share Posted March 15, 2006 action="index.php?sad=<? echo $_REQUEST['sad'];?> " katkaa taa Link to comment Share on other sites More sharing options...
Recommended Posts