xfr33 Posted July 18, 2008 Report Share Posted July 18, 2008 Es izveidoju sesijas pa visām mājas lapas adresēm. Viss iet izņemot vienu lietu. Textboxā nemāku ielikt lai rādas arī tas pats sesijas teksts. Palīdzēsiet? Link to comment Share on other sites More sharing options...
bubu Posted July 18, 2008 Report Share Posted July 18, 2008 echo $_SESSION["xxx"]; Link to comment Share on other sites More sharing options...
xfr33 Posted July 18, 2008 Author Report Share Posted July 18, 2008 bubu to pie value rakstīt? man textboxam value: value="<?php echo isset($_SESSION['name']) ? htmlspecialchars($_SESSION['name']) : ''; ?> Link to comment Share on other sites More sharing options...
Val Posted July 18, 2008 Report Share Posted July 18, 2008 jā. un aizverošās pēdiņas beigās neaizmirsti Link to comment Share on other sites More sharing options...
xfr33 Posted July 18, 2008 Author Report Share Posted July 18, 2008 kodam pašās pašās beigās? tur man arī ir pēdiņas. bet tik un tā neiet. Link to comment Share on other sites More sharing options...
Val Posted July 18, 2008 Report Share Posted July 18, 2008 da nē. aizverošās pēdiņas priekš value rādi visu, lai nav jāzīlē... Link to comment Share on other sites More sharing options...
xfr33 Posted July 18, 2008 Author Report Share Posted July 18, 2008 ja ir vēlēšanās var iečekot kāda situācija! paskaties to formu atver pirmo lapu, ieraksta vārdu, iet tālāk, darbojas sesija, iet uz formu, sesija darbojas, bet vietā kur rakstīts firmas nosaukums sesija nedarbojas. apskatiet! Link to comment Share on other sites More sharing options...
xfr33 Posted July 18, 2008 Author Report Share Posted July 18, 2008 visa lapa <html> <head><title>Aizpildi formu</title> </head> <body> <form method="post" action="send.php"> Firmas nosaukums: <input name="email" type="text" value="<?php echo isset($_SESSION['name']) ? htmlspecialchars($_SESSION['name']) : ''; ?>" ><br /> Vārds, uzvārds: <input name="name" type="text" /><br /> Kontaktinformācija: <input name="info" type="text" /><br /> Prece:<br /> <textarea name="prece" rows="6" cols="30"> </textarea><br /> <input type="submit" value="Apstiprinat" /> </form> <?php session_start(); if(isset($_SESSION['name'])) echo "Jūsu firmas \"". $_SESSION['name'] ."\" pārstāvis ir iegājis mūsu mājas lapā!" ?> </body> </html> Link to comment Share on other sites More sharing options...
Val Posted July 18, 2008 Report Share Posted July 18, 2008 sesiju vajag sākt pirms <html> Link to comment Share on other sites More sharing options...
xfr33 Posted July 18, 2008 Author Report Share Posted July 18, 2008 tātad man tos html tagus izdzēst? bet ir viena sesija kas ir iekš html! apakšējā Link to comment Share on other sites More sharing options...
Val Posted July 18, 2008 Report Share Posted July 18, 2008 nu mļe :) <?php session_start(); ?> <html> utt... otru session_start izdzēs. un ieslēdz error_reporting Link to comment Share on other sites More sharing options...
xfr33 Posted July 18, 2008 Author Report Share Posted July 18, 2008 nu to ka pirms html ir jābūt session start zinu! ok otru izdzēsīšu un kā var error reporting ieslēgt? Link to comment Share on other sites More sharing options...
Val Posted July 18, 2008 Report Share Posted July 18, 2008 tu jau meklēji, kā ieslēgt? Link to comment Share on other sites More sharing options...
xfr33 Posted July 18, 2008 Author Report Share Posted July 18, 2008 val! lielu lielais PALDIES :D :D Link to comment Share on other sites More sharing options...
xfr33 Posted July 18, 2008 Author Report Share Posted July 18, 2008 viss aizgāja :D Link to comment Share on other sites More sharing options...
Recommended Posts