Reply to Re: header("Location: ..."); NOT WORKING!?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация