示例#1
0
文件: test04.php 项目: renq/ML-Lib
<?php

include('test04_form.php');


$form = new Test04Form();
$form->start();

if (isset($_SESSION['data'])) {
	$form->setData($_SESSION['data']);	
	$form->validate();
	
	unset($_SESSION['data']);
}


echo $form->show(new AF_ParagraphLayout());

?>
示例#2
0
<?php

include('test04_form.php');


$form = new Test04Form();
$form->start();

$_SESSION['data'] = $form->getData();

if ($form->validate()) {
	header('Location: test04_saved.php');
}
else {
	header('Location: test04.php');
}

exit();

?>