Jump to content
php.lv forumi

html ieks php


merfss

Recommended Posts

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

×
×
  • Create New...