On Tuesday 12 February 2002 14:22, Tehn Yit Chin wrote:
> Hi all,
>
> If I have the following code,
>
>global $some_var
>
> type="submit" name="submit" value="foobar">
>
> ?>
>
>
> When the user hits the submit button, the value in some_var disappears? Is
> there a way of perservin
You could do it a number of ways.
1. Use a hidden input field in your form,.
2. Put $some_var in a session variable.
3. Pass the value of some_var in the url.
Each has it's advantages/disadvantages. Just remember that just because you say
something is global doesn't mean it's global to every pa
Hi all,
If I have the following code,
type="submit" name="submit" value="foobar">
?>
When the user hits the submit button, the value in some_var disappears? Is
there a way of perserving the value in $some_var.
thanks in advance.
cheers,
Tehn Yit
--
PHP General Mailing List (http
..
When ur using a function. It can be different, since you have to
import these variables."
HTH,
Andy
- Original Message -
From: "Tehn Yit Chin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 1:22 AM
Subject: [PHP] preserv
4 matches
Mail list logo