Creo que he hecho tal como me sugieres, pero tengo problemas en la formula:
<?
session_start(); // incio de uso de sesiones.
//$variable=$_SESSION['$title']; // asignamos a $variable la
// variable de la session áctiva.
//session_register("$title");
if($e="y"){
$variables=$_SESSION['title, turism'];
}
session_unregister(' title, turism '); // Elimito variables de la sesion.
?>
<input name="title" type="TEXT" id="title" size="40" value="<? if($e="y"){echo $variables('title');}else{echo $title;} ?>">
<input type="checkbox" name="tourism" value="checkbox" <? if($e="y"){if ($variables['tourism']=="checkbox"){echo " checked ";}}else{echo marked($tourism);}?>>
echo "<input type='SUBMIT' value='Add' name='add'>";
Pero esta pagina me da error en esta linea:
<input name="title" type="TEXT" id="title" size="40" value="<? if($e="y"){echo $variables('title');}else{echo $title;} ?>">
me tira estos errores:
Notice: Undefined index: title, turism, in C: \TMP57w85cu3wh.php on line 7
En linea 7 tengo:
$variables=$_SESSION['title, turism'];
y me marca otro error en:
<input name="title" type="TEXT" id="title" size="40" value="<? if($e="y"){echo $variables('title');}else{echo $title;} ?>">
Fatal error: Call to undefined function: () in C:\ TMP57w85cu3wh.php on line 212
Gracias por cambiar tu primer respuesta, este ejemplo me ha orientado mucho!