Sebastian,
I apologize if I offended you.
My comments about others did not mean to include you.
[color=blue]
>If you want $_SESSION variables to be cleared, the user will have to send a[/color]
whole new request to the server
This gave me the clue that I should call up the entire page rather than
trying to just reset the data in the form.
<?php
if (!isset ($_POST['reset'])) {
echo '<form action="'.$_SER VER['PHP_SELF'].'" method="post">
<input type="submit" value="Reset the $_SESSION array"
name="reset" />
</form>';
}
else {
$_SESSION = array();
echo 'Happy?'; // Yes I am happy for the suggestion and time you took to
reply.
}
?>
[color=blue]
> BTW, there's this nice little manual at PHP.net that you may want to read.[/color]
[color=blue]
>Yeah, indeed, print it out, and read one chapter every night before going[/color]
to bed. Honestly, you could be a guru for PHP4/5 when >PHP XXIII will be out
and running...
I took this a criticism after reading all the others who criticize and
offered no ideas.
I now see than it can be read as PHP is complex.
I am just flustered over people who say this is easy and offer no ideas or
suggestions.
[color=blue]
>It is then very interesting how the faulty person tries to get the smart[/color]
guy to like him, whether it is by telling him he's a good
guy, and the others are jerks.
No. Just wanted to thank all those who offer suggestions. I do not call
others names. Over the years, I have worked with many people who criticize,
but never offer a solution or an idea. One of my pet peeves.
[color=blue]
> You know, critic isn't such a bad thing, it allows you to see your errors,[/color]
I agree, but criticism without suggestion is no help. You cannot learn from
it.
My apologizes to you.
Thanks again for the suggestion.
Ken
I apologize if I offended you.
My comments about others did not mean to include you.
[color=blue]
>If you want $_SESSION variables to be cleared, the user will have to send a[/color]
whole new request to the server
This gave me the clue that I should call up the entire page rather than
trying to just reset the data in the form.
<?php
if (!isset ($_POST['reset'])) {
echo '<form action="'.$_SER VER['PHP_SELF'].'" method="post">
<input type="submit" value="Reset the $_SESSION array"
name="reset" />
</form>';
}
else {
$_SESSION = array();
echo 'Happy?'; // Yes I am happy for the suggestion and time you took to
reply.
}
?>
[color=blue]
> BTW, there's this nice little manual at PHP.net that you may want to read.[/color]
[color=blue]
>Yeah, indeed, print it out, and read one chapter every night before going[/color]
to bed. Honestly, you could be a guru for PHP4/5 when >PHP XXIII will be out
and running...
I took this a criticism after reading all the others who criticize and
offered no ideas.
I now see than it can be read as PHP is complex.
I am just flustered over people who say this is easy and offer no ideas or
suggestions.
[color=blue]
>It is then very interesting how the faulty person tries to get the smart[/color]
guy to like him, whether it is by telling him he's a good
guy, and the others are jerks.
No. Just wanted to thank all those who offer suggestions. I do not call
others names. Over the years, I have worked with many people who criticize,
but never offer a solution or an idea. One of my pet peeves.
[color=blue]
> You know, critic isn't such a bad thing, it allows you to see your errors,[/color]
I agree, but criticism without suggestion is no help. You cannot learn from
it.
My apologizes to you.
Thanks again for the suggestion.
Ken
Comment