tiy Posted May 13, 2006 Report Share Posted May 13, 2006 (edited) Ir forma: <form method="POST" action="check.php"> <input type="text" name="name"> <input type="text" name="some"> <input type="submit" name="submit"> </form> ka man izdarit, lai kad faila check.php sanem name apstrada to on uzreizs atnak atpakal uz lapu, kura bija forma, un izvada pazinojumu ka vards ir par isu vai vispar nebija ievadits, bet ja kaut ko ir ievadijis ieksh some, tad lai ari tas tur paliek. piem. vards par iso ---------|--------------------| ______| kaut ko ievadija | submit ---------|--------------------| Edited May 13, 2006 by tiy Link to comment Share on other sites More sharing options...
ohmygod Posted May 13, 2006 Report Share Posted May 13, 2006 <input type="text" name="some" value="<?PHP echo $_POST['some']; ?>"> Vienkāršākajā variantā... Ja nav redirekts Link to comment Share on other sites More sharing options...
tiy Posted May 13, 2006 Author Report Share Posted May 13, 2006 man tieshi gribas uzzinat par to variantu ar redirektu Link to comment Share on other sites More sharing options...
v3rb0 Posted May 13, 2006 Report Share Posted May 13, 2006 kaut vai taisi redirectu uz 'register.php?post='serialize($_POST) pēc tam if (isset($_GET['post']) { $_POST = unserialize($_GET['post']); } un tālāk jau kā bez redirecta liec sarakstīto lauciņos. var arī sessijā/failā/db vēl kaut kur pieglabāt sarakstīto pirms redirecta. Link to comment Share on other sites More sharing options...
Recommended Posts