merfss Posted January 8, 2009 Report Posted January 8, 2009 Sveiki, rakstishu bez garumzimem jo nesen parinstaleju pc un nav uzinstalets. Tatad man ir shads kods nav parak garsh tapec ielikshu sheit <?php $vards = $_POST["vards"]; $xvsx = $_POST["xvsx"]; $serv = $_POST["serv"]; $map = $_POST["map"]; $time = $_POST["time"]; $steam = $_POST["steam"]; $coment = $_POST["coment"]; htmlspecialchars($vards); htmlspecialchars($teksts); $cikls = fopen("request.php", 'a') or die("neizdevas!"); { fwrite($cikls, $vards .":"); fwrite($cikls, $xvsx .":"); fwrite($cikls, $serv .":"); fwrite($cikls, $map .":"); fwrite($cikls, $time .":"); fwrite($cikls, $steam .":"); fwrite($cikls, $coment ." <br/>"); fclose($cikls); header( "Location: http://localhost/index.php" ) ?> Pec shi koda viss noraditais tekst ir viena rindaa bet es gribu panaakt ka vinsh ir shada rami. <table border="1"> <tr> <th> $vards </th> <td> $xvsx </td> </tr> <tr> <th rowspan="6"> $coment </th> <td> $steam </td> </tr> <tr> <td> $serv </td> </tr> <tr> <td> $map </td> </tr> <tr> <td> $time </td> </tr> </table>
Val Posted January 8, 2009 Report Posted January 8, 2009 echo ' <table border="1"> <tr> <th> '.$vards.' </th> <td> '.$xvsx.' </td> </tr> '; vai <table border="1"> <tr> <th> <?php echo $vards; ?> </th> <td> <?php echo $xvsx; ?> </td> </tr> u.c. varianti. pārējo pieraksti pats.
merfss Posted January 8, 2009 Author Report Posted January 8, 2009 nja to jau es zinaju bet man tas kods ir ieksh php un php man nenem pretim <
waplet Posted January 8, 2009 Report Posted January 8, 2009 tāpēc vajag pēdiņās likt!vai arī tev htmlspecialchars arī tam iet virsū?
waplet Posted January 8, 2009 Report Posted January 8, 2009 nu tad pie tā teksta vajag ņemt nost , lai nav tie alt%%
Recommended Posts