Proszę o pomoc potrzebuję skryptu który generowałby indywidualny link każdemu odwiedzającemu stronę tak jak ma to miejsce na stronie http://www.goraceserce.pl/ z tą różnicą, żeby można było wpisywać nie tylko imię lecz także jakiś dłuższy tekst
<?php
require_once('narzedzia.php');
$strona['tytul']='Jakiś tam tytuł';
$strona['tresc']='<form action="zapisz.php" method="post">
<fieldset>
<legend>Formularz</legend>
<label>Treść:</label><textarea cols="50" rows="10" name="tresc"></textarea>
<input type="submit" value="Wyślij" />
</fieldset>
</form>';
wyswietl_szablon('strona', $strona);
?>
<?php
require_once('narzedzia.php');
$baza=baza_lacz();
$id=filtruj_liczbe($_GET['id'], 1);
$tresc=baza_rekord($baza, 'select tresc from tekst where id='.$id);
$strona['tytul']='Treść';
$strona['tresc']='Twój treść: '.wyswietl_wazne($tresc['tresc']);
wyswietl_szablon('strona', $strona);
?>
drop database if exists link;
create database link;
use link;
create table tekst(
id int unsigned not null primary key auto_increment,
tresc text not null
);
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<head>
<meta http-equiv="Content-type" content="application/xhtml+xml; charset=utf-8" />
<meta name="Description" content=" [wstaw tu opis strony] " />
<meta name="Keywords" content=" [wstaw tu slowa kluczowe] " />
<meta name="Author" content=" [dane autora] " />
<meta name="Generator" content="kED" />
<title>{tytul}</title>
<link rel="stylesheet" href=" [nazwa_arkusza_stylow.css] " type="text/css" />
</head>
<body>
{tresc}
</body>
</html>
baza.sql
Kod:
drop database if exists link;
create database link;
use link;
create table tekst(
id int unsigned not null primary key auto_increment,
tresc text not null
);