Lejnieks Posted November 5, 2009 Report Share Posted November 5, 2009 pienjemsim ka vienaa formaa lietotaajs ieraksta 5 otrajaa formaa 6 bet lai treshajaa php tas viss uzraadaas? Quote Link to comment Share on other sites More sharing options...
Lejnieks Posted November 5, 2009 Author Report Share Posted November 5, 2009 bija domaats pirmajaa php faila formaa un otrajaa php faila formaa.. Quote Link to comment Share on other sites More sharing options...
homers Posted November 5, 2009 Report Share Posted November 5, 2009 Izmanto edit Nesapratu tavu ideju! Bet varbūt sīts echo $_POST['input1']; Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted November 5, 2009 Report Share Posted November 5, 2009 Uzraksti skaidrāk, savādāk saprast nevar, ko tu īsti vēlies. Ja tu submit'to vispirms vienu formu un vēlāk citu un vēlies to kaut kā apvienot, tad pirmās formas datus vari saglabāt vai nu sesijā, vai kukijā vai datu bāzē. Viss ir atkarīgs no situācijas. Quote Link to comment Share on other sites More sharing options...
Lejnieks Posted November 5, 2009 Author Report Share Posted November 5, 2009 Nu jaa es submitoju pirmo formu un tad otru formu.... <form action="yyy.php" method="post"> <input type="text" name="age"/> <input type="submit" value="turpinat" /> <form action="xxx.php" method="post"> <input type="text" name="cilveki"/> <input type="button" value="turpinat" /> </form> divi php un kaa treshajaa var dabuut vecuma un cilveeku reizinaajumu??? sorry par neskaidriibu, bet nu maacos... Quote Link to comment Share on other sites More sharing options...
briedis Posted November 5, 2009 Report Share Posted November 5, 2009 Nu jaa es submitoju pirmo formu un tad otru formu.... <form action="yyy.php" method="post"> <input type="text" name="age"/> <input type="submit" value="turpinat" /> <form action="xxx.php" method="post"> <input type="text" name="cilveki"/> <input type="button" value="turpinat" /> </form> divi php un kaa treshajaa var dabuut vecuma un cilveeku reizinaajumu??? sorry par neskaidriibu, bet nu maacos... Tu nevari paralēli no diviem nokļūt trešajā. Variants ir no viena uz otru, tad otrā ar paslēptajiem laukiem saglabājam padotās vertības un padodam tālāk uz trešo. 1. fails <form action="uz_otro.php" method="post"> <input type="text" name="age"/> <input type="submit" value="turpinat" />[/b] 2. fails <form action="uz_tresho.php" method="post"> <input type="text" name="cilveki"/> <input type="hidden" name="age" value="<?=$_POST['age'];?>"/> <input type="button" value="turpinat" /> 3. fails <form action="veel_uz_naakamo.php" method="post"> <input type="hidden" name="cilveki" value="<?=$_POST['cilveki'];?>"/> <input type="hidden" name="age" value="<?=$_POST['age'];?>"/> <input type="button" value="turpinat" /> utt.. Quote Link to comment Share on other sites More sharing options...
Lejnieks Posted November 5, 2009 Author Report Share Posted November 5, 2009 Pladies. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.