Posted by David Haynes on 03/21/06 01:13
Duderino82 wrote:
> 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!
>
How are you setting the value of $delete?
Something like $delete = isset($_GET['del']);
-david-
[Back to original message]
|