mising html code with (outside) quickform code - howwhere to use ob_start() ?
| From: | l Burnerheimerton | Date: | Fri, 01 Apr 2005 19:51:45 +0000 |
| Subject: | mising html code with (outside) quickform code - howwhere to use ob_start() ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18480@lists.php.net to get a copy of this message | ||
I need to use quickform inside a dreamweaver template.
I know I could use a templating system but time
permits not this time.
Quickform processes the form but when it tries to go
to another page using
header("Location: file.php")
I get the error indicating "header info has already
been sent".
Basically, I have the code below. If ob_start() would
work to avoid the error above (and I think it will),
please let me know where to use it.
Thanks!
require_once('HTML/QuickForm.php');
$form = new HTML_QuickForm('form1');
....//build form
if ($form->validate()) {
$form->process('process_data', false);
header("Location: anotherfile.php");
exit;
}
function process_data ($valuesDate) {
....//process form data
}
<html>
<head>
....
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com