annazorka Posted November 21, 2005 Report Share Posted November 21, 2005 Lieta sekojoša, ka izmantojot IE rezultātā ir pilns ceļš , bet Mozillā tikai faila nosaukums [fails aka.php] <? echo" <form name='kakaform' action='aka2.php' method='post'> <input type='file' name='text1' size='60'><br> <input type='submit' value='submit'><input type='reset' value='reset'> </form>"; ?> [fails aka2.php] <? echo $_POST['text1']; ?> Kā likt Mozillai arī rādīt pilnu ceļu? Itkā varētu mēģināt kaut ko darīt ar Javascript, bet varbūt ir saudzējošaka metode? Link to comment Share on other sites More sharing options...
Delfins Posted November 21, 2005 Report Share Posted November 21, 2005 pilnu ceļu kur ? Link to comment Share on other sites More sharing options...
ohmygod Posted November 21, 2005 Report Share Posted November 21, 2005 Tev file laukā vajag to garo redzēt? Nu mna rāda uz FF visu korekti. Es domāt ka nemaz savādāk nevar būt, jo tad jau FILES vērtība mainās... Link to comment Share on other sites More sharing options...
v3rb0 Posted November 21, 2005 Report Share Posted November 21, 2005 ja par file lauku, tad neko tur daudz nepadarisi. a safari vispaar buus tikai faila nosaukums un icona, plus browse poga nosaukta par choose file un nolikata otraa pusee. Link to comment Share on other sites More sharing options...
Klez Posted November 21, 2005 Report Share Posted November 21, 2005 (edited) [fails aka2.php] uztaisi lai shitaads izskatas: <? print_r( $_FILES['text1']); ?> Edited November 21, 2005 by Klez Link to comment Share on other sites More sharing options...
Delfins Posted November 21, 2005 Report Share Posted November 21, 2005 aha, tika sajaukts _POST ar _FILES... Link to comment Share on other sites More sharing options...
Recommended Posts