orion Posted October 14, 2004 Report Posted October 14, 2004 Tjip, kaa var nodod normaalaa veidaa mainiigo veertiibas uz naakamo failu - taalaakai apstraadei?? Man pagaidaam tikai ar formu un POST izdodas... Ir kaadi citi varianti veel?? Caur linku... vai kaa... Nododamaa infa ir diezgan apjomiiga. Vajadzeetu kko liidziiigu kaa formaas, bet bez pashas formas...
hu_ha Posted October 14, 2004 Report Posted October 14, 2004 ir divas metodes - POST un GET POST - izmantojot formas tiek sutiiti dati serverim <form action="fails.php" method="post"> <input name="vards" value=""/> <input type="submit" /> </form> savaac veertiibu ar $_POST['vards'] GET - izmanto lai nodotu veertiibu caur linku <a href="lapa.php?mainigais=2">links</a> vai ar formas paliidziibu <form action="fails.php" method="get"> <input name="vards" value=""/> <input type="submit" /> </form> savaac veertiibu ar $_GET['mainigais'] un kombineetaa metode <form action="fails.php?mainiigias=3" method="post"> <input name="vards" value=""/> <input type="submit" /> </form> savaac veertiibas ar $_GET['mainigais'] un $_POST['vards'] tas arii viss
PheliX Posted October 14, 2004 Report Posted October 14, 2004 visnormaalaak man liekas ar sessijaam. katra skripta saakumaa liec session_start() un visos skriptos buus pieejams masiivs $_SESSION kuraa vareesi glabaat tos datus ko vajag nodot citam skriptam.
neonz Posted October 17, 2004 Report Posted October 17, 2004 Bez vajadzības izmantot sesijas, manuprāt, nav vēlams. Tās tomēr vairāk noslogo gan servera galu, gan klienta galu, kā arī piedrazo vai nu URLi ar sesijas id, vai klienta datoru ar cepumiņu.
bubu Posted October 17, 2004 Report Posted October 17, 2004 Hm, interesanti gan, kā sesijas noslogo klienta galu? Servera jā gan. Bet ja datus bāž POST hidden laukā vai cepumos, tad gan abi gali noslogojas.
Recommended Posts