Bu kodu vardır ve bu bilgileri doldurmak için insanlar için metin kutuları ile etiket yazdırmak gerekir. Bu gibi bir metin alır: $ simgeleri = "* i * i * fiil" ve kullanıcıya sahip bir tablo yazdırmak gerekir:
Noun: (text box to be filled) Noun: (text box to be filled) verb: (text box to be filled) etc.
ama çalışmıyor
echo "<form action=\"storygenerated.php\" method=\"post\">
<input name=\"fields\" type=\"hidden\" value=\"$tokens\" />
<input name=\"story\" type=\"hidden\" value=\"$story\" />
<table>";
for ($i = 0; $i < count($tokenArray); $i++) {
$fieldWords = split('_',$tokensArray[$i]);
echo "<tr><td>";
echo $fieldWords[0];
for ($j = 1; $j < count($fieldWords); $j++) {
echo " ".$fieldWords[$j];
}
echo ":";
echo "</td><td><input name=\"$tokensArray[$i]\" type=\"text\" /></td></tr>";
}
Metin $ belirteçleri üreten bu koddan hangi
$storyArray = split(' ', $story);
$tokens = ""; // space-delimited list of fields
$tokensArray=array();
for ($i = 0; $i < count($storyArray); $i++) {
if ($storyArray[$i][0] == '*') {
$tokens .= $storyArray[$i] . " ";
$tokensArray[] = $storyArray[$i];
}
}