urramingash Posted December 12, 2004 Report Share Posted December 12, 2004 Kods shitaads: if ($error == 0){ //ja nav OK echo $errorLog; header("Location: register.php"); exit(); } else{ echo 'Viss OK, pienjemu registraciju.'; } Bet man nobljaujas, ka nav labi ar to headeru, ka already sent. un to $errorLog maniigo vajag nosuutiit arii uz register.php (tjipa atpakalj, jo register.php izsauc shito kodu) Link to comment Share on other sites More sharing options...
Aleksejs Posted December 12, 2004 Report Share Posted December 12, 2004 http://php.lv/f/index.php?act=Search&CODE=...rs+already+sent Link to comment Share on other sites More sharing options...
urramingash Posted December 12, 2004 Author Report Share Posted December 12, 2004 Mosh vajag izpildiit shito kodu kaa funkciju tajaa pashaa redirect.php? Bet kaa to izdariit, ja man vajag, lai shito kodu izpila, kad nospiezh Submit. Link to comment Share on other sites More sharing options...
urramingash Posted December 12, 2004 Author Report Share Posted December 12, 2004 (edited) OK, tiek radiits mainiigais, ko vajag paarsuutiit atpakalj uz to ragister.php Kaa shito dabuut gatavu? Lai ieksh register.php vinju vareetu nolasiit kaa $_POST['atsuutiitaismainiigais']. Mosh savaadak ir labaak? man to $errorLog vajag aizuutiit uz register.php Varbuut tiaki caur cookies to var dabuut gatavu? Man neder ar register.php?errorLog=4 Edited December 12, 2004 by urramingash Link to comment Share on other sites More sharing options...
urramingash Posted December 12, 2004 Author Report Share Posted December 12, 2004 Viss OK, salaboju, sataisiiju. Ja nu gadiijumaa citiem chainjikiem rodas shaadas probleemas, tad nu reku risinajums maneejais shaads: <?php if($HTTP_POST_VARS['Submit']) { if ((!$HTTP_POST_VARS['vards'] || !$HTTP_POST_VARS['uzvards'] || //blablabla { //pieregistree, jo visi laukumi aizpildiiti $errorLog = "Reģistrācija veiksmīga!<BR> <a href=\"index.php\" class=\"LinkUnderlined style4\">Uz sākuma lapu</a>"; } echo $errorLog; Nu re, nebij nemaz tik briesmiigi, vajag paseerchot... googli. Link to comment Share on other sites More sharing options...
Aleksejs Posted December 12, 2004 Report Share Posted December 12, 2004 Viss OK, salaboju, sataisiiju. Nu re, nebij nemaz tik briesmiigi, vajag paseerchot... googli. Tieši tā (-; Link to comment Share on other sites More sharing options...
Recommended Posts