Posted by Duderino82 on 03/21/06 00:50
I'm working on a very simple peace of php where basically there is a
form and 3 buttoms. One refreshed the page, one posts the form, and
another one (since this form contains values of a record) deletes the
record. The sintax is this one:
if ($delete)
{ header ("Location: $redirect?del=$code&table=$tab");
exit;
}
where $delete is the buttom, $redirect is the string containing the url
("http://www...."). $code and $tab are values verified and correct.
Well the funny thing is that this line worked well since I add the
third buttom (the delete) after I added it even the post buttom doesn't
work anymore. Exactly the page refreshes itself wihout changing
parameters ($redirect contains in fact the same page but with different
parameters) and stops loading the page after this line (probabily the
exit() kicking in). Is there another way to redirect a page other then
header()??? It's driving me crazy...help me!
[Back to original message]
|