Reply to Re: header()

Your name:

Reply:


Posted by bob.chatman@gmail.com on 10/14/06 17:20

Why dont you just change 'password changed successfully' to 1 and test
that?

You dont have to use sentences in variables, and chances are you are
doing a test anyways. One trick i have done is to return a code, and
the code would be the trigger to output. It is much simpler to write
the code, even though you lose readability to the user. But thats what
define() is for.

<?
define('PASS_CHANGE_GOOD', 1);
define('PASS_CHANGE_BAD', 2);

if ($_GET['suc'] == PASS_CHANGE_GOOD)
{
print "Your password has been changed successfully!";
}
?>

..:[ ikciu ]:. wrote:
> Hmm sree <sreedharnatarajan@gmail.com> wrote:
> > Anybody know the reason or solution, please guide me,
>
>
> header("Location: myaccount.php?suc=".rawurlencode
> ("password changed successfully"));
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl
>
> 2be || !2be $this => mysql_query();

[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

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