PDA

View Full Version : SOLVED! - Redirect in a php file after succes db input. / how do i return ?


Vaupell
02-15-2009, 10:13 AM
Doing some learning on a test board..

Made a query_write and it all checks out
and data is added, but after the data is added
i end up with a blank page..

is there anyway i can force a redirect to test.php?do=main

after ?


EDIT thinking something like


if $dataupdate()
{
Redirect succes
}
else
{
you messed up
}

edit : how do i return ? :p

--------------- Added 1234703256 at 1234703256 ---------------

hmmm

not sure if this is the best way solved it with an additional template

if ($dataupdate)
{
eval('print_output("' . fetch_template('testa_donepage') . '");');
}

template contains a succes message and a link to test.php?do=main