persix Posted February 18, 2004 Report Share Posted February 18, 2004 Apskaidrojiet dullo pratu :huh: Ja man ir forma kadi 3 lodzini, teksims vards: _____ Uzvards: _____ Organizacija: _____________ Kad lietotajs ievada sos visus laucinus, tad tiek postots, un problema ir sekojoša, vai so visu var skaisti sakartot, tas ir vienam mainigam pieskirt visas sis tris rindinas. Ja es zizmantoju sadu metodi, tad nu nekas skaists nesanak! $teksts .= $_POST['vards']; $teksts .= $_POST['uzvards']; $teksts .= $_POST['organizacija']; Vai ir iespejams uzcinit ta Vards Uzvards Organizacija Baigi skaisti sanaktu! Paldies par atsaucibu! Link to comment Share on other sites More sharing options...
рпр Posted February 18, 2004 Report Share Posted February 18, 2004 saglabaa masiivaa. manupraat vareeja shaadi: <input name="viensmainiigais[vaards]" Link to comment Share on other sites More sharing options...
рпр Posted February 18, 2004 Report Share Posted February 18, 2004 peec tam ar masiivu var veikt funkciju implode Link to comment Share on other sites More sharing options...
Robis Posted February 18, 2004 Report Share Posted February 18, 2004 Protams ir iespeejams un pavisam elementaari: $texts = $_POST['name']; $texts .= ", ".$_POST['surname']; $texts .= ", ".$_POST['organisation']; echo $texts; Un nekas tur nevar nesanaakt! :) Link to comment Share on other sites More sharing options...
Robis Posted February 18, 2004 Report Share Posted February 18, 2004 Vispar atkarigs no vajadzibas, kur tev pec tam tos postus ir nepiecieshams izlietot? Tev vajag aizsuutiit meilu, vai paraadiit uz ekraana? Iespeejams tavaa kodaa bija probleema, ka no saakuma mainiigo $texts nedriikst pieshkjirt shaadi $texts .= blabla; - vinjam sakumaam jaabuut kaut kur defineetam vienkaarshi $texts = blabla; Link to comment Share on other sites More sharing options...
persix Posted February 18, 2004 Author Report Share Posted February 18, 2004 Nu lielas paldies, viss baigi labi sanaca, es vienkarsi gribu nosutit meilinu, un ta kartigak vajadzeja sakartot. Link to comment Share on other sites More sharing options...
Venom Posted February 19, 2004 Report Share Posted February 19, 2004 $texts = $_POST['name']; $texts .= ", ".$_POST['surname']; $texts .= ", ".$_POST['organisation']; a kas vainas $texts=$_POST['name'].", ".$_POST['surname'].", ".$_POST['organisation']; ? variants ar input name="info[name]" ... arī ir labs: $texts=join(", ",$_POST['info']); Link to comment Share on other sites More sharing options...
Recommended Posts