[snip]
When I refresh a script using a form, it goes through resets all my
custom Constants but presumably all my variables should still hold their
values from the last run, right? THere are no functions involved.
What would cause a variable or even a $POST[] value to be erased?
[/snip]
Jay Blanchard wrote:
What would cause a variable or even a $POST[] value to be erased?
[/snip]
Refreshing the script causes the variable arrays to be repopulated with
empty or blank variables unless a session was used to hold the
variables. Refreshing is essentially calling the script without
Paul Furman wrote:
So...
$_REQUEST is the only way to go without getting into sessions?
OK I see, it either goes in the url or a cookie.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
$_REQUEST is the only way to go without getting into sessions?
[/snip]
Nope, $_REQUEST (as its name implies) contains variables that are part
of the request process. If you refresh the form the $_REQUEST array will
essentially be empty for those vraibles that would be passed from form
to
Jay Blanchard wrote:
[snip]
$_REQUEST is the only way to go without getting into sessions?
[/snip]
Nope, $_REQUEST (as its name implies) contains variables that are part
of the request process. If you refresh the form the $_REQUEST array will
essentially be empty for those vraibles that would
Paul Furman wrote:
OK I'm confused. I want to set a variable with a form. How do I do that?
I guess I need to put it in the url? I did a mail form that worked by
putting stuff in the $POST and when it refreshed to the same mail page,
I grabbed the stuff back out of that (at least that's what I
snip
I'm guessing this is not a sensible approach.
Every place I construct a url, I'd have to remember to add this.
/snip
Have you looked into sessions and/or cookies?
I think you want to use $_POST not $POST
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Matt Matijevich wrote:
snip
I'm guessing this is not a sensible approach.
Every place I construct a url, I'd have to remember to add this.
/snip
Have you looked into sessions and/or cookies?
I'm taking a class we are probably not going there for a while. It
looks involved.
I think you
Ugh, I think I'm done for the day. header() requires output buffering
which would span several files and sounds like another mess.
Paul Furman wrote:
Matt Matijevich wrote:
snip
I'm guessing this is not a sensible approach. Every place I construct
a url, I'd have to remember to add this.
9 matches
Mail list logo