Well first off all it is possible to post and get at the same time.
Dont know why you want to, but its kinda easy really :
Example :
You can submit this form several ways, with ordinary submit button, or with
javascrip submit.
If you really want to keep serving variables that shouldnt be vis
why not build a GET QUERY_STRING, save it in a database along with the
session_id, the read it on the second page, parsing the string.
Jeff Harris wrote:
|Valentin wrote:
|
|>Hi, is any way to pass a $Var from one to other php pages without using
|> and Cookies?
|>
|>Thanks,
|>
On Jul 16, 2003,
|Valentin wrote:
|
|>Hi, is any way to pass a $Var from one to other php pages without using
|> and Cookies?
|>
|>Thanks,
|>
On Jul 16, 2003, "John Manko" claimed that:
|page1.php
|$_SESSION['myvars_VARNAME'] = $varname;
|the 'myvars_' is just for identification purposes, so avoid over-writing
|a
Thanks John!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you Robert!
But, I forgot to mention... "and without URI"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
page1.php
$_SESSION['myvars_VARNAME'] = $varname;
the 'myvars_' is just for identification purposes, so avoid over-writing
anthing that you might not want to.
page2.php
$varname = $_SESSION['myvars_VARNAME'];
Valentin wrote:
Hi,
is any way to pass a $Var from one to other php pages without usi
Use the GET method (URL parameters). If you want to pass (foo=5) then
do the following:
A link label
Cheers,
Rob.
On Wed, 2003-07-16 at 12:44, Valentin wrote:
> Hi,
> is any way to pass a $Var from one to other php pages without using
> and Cookies?
>
> Thanks,
>
>
>
>
> --
> PHP Genera
Hope that helps.
>
> -Kevin
>
> - Original Message -
> From: "Pushkar Pradhan" <[EMAIL PROTECTED]>
> To: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, April 26, 2002 12:10 PM
> Subj
On Friday, April 26, 2002, at 02:15 PM, Pushkar Pradhan wrote:
> Believe me I certainly don't want to ask a JS ques. here, I am reading
> tutorials on the web!
> I already accomplished reordering using PHP, I gave up on php since I
> wasn't able to pass arrays betn. pages using header().
If yo
dex.php?myarray[]='.$myarray[0];
for ($i=1; $i
To: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, April 26, 2002 12:10 PM
Subject: RE: [PHP] passing vars. betn. php and javascript
> Actually I was frustrated trying to redirect t
done in PHP? I guess my real
> question is what is the Javascript for?
>
> -Kevin
>
> - Original Message -
> From: "Pushkar Pradhan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 26, 2002 11:23 AM
> Subject: Re: [PHP] passi
-
> From: Jason Wong [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 26, 2002 1:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] passing vars. betn. php and javascript
>
>
> On Saturday 27 April 2002 01:23, Pushkar Pradhan wrote:
> > In my php I had 4 buttons, up, d
x27;re certain this
reordering isn't something that can be done in PHP? I guess my real
question is what is the Javascript for?
-Kevin
- Original Message -
From: "Pushkar Pradhan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 26, 2002 11:23
CTED]]
Sent: Friday, April 26, 2002 1:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] passing vars. betn. php and javascript
On Saturday 27 April 2002 01:23, Pushkar Pradhan wrote:
> In my php I had 4 buttons, up, down, top and bottom:
> After detecting which element and which button was clicke
On Saturday 27 April 2002 01:23, Pushkar Pradhan wrote:
> In my php I had 4 buttons, up, down, top and bottom:
> After detecting which element and which button was clicked I changed the
> element position by
> using array_slice, shift, unshift, array_merge etc..
> I'm not sure what I'll do it JS
In my php I had 4 buttons, up, down, top and bottom:
After detecting which element and which button was clicked I changed the
element position by
using array_slice, shift, unshift, array_merge etc..
I'm not sure what I'll do it JS
> On Saturday 27 April 2002 00:56, Pushkar Pradhan wrote:
> > I nee
On Saturday 27 April 2002 00:56, Pushkar Pradhan wrote:
> I need to pass an array from php to javascript,
> change the ordering of the elements in javasc..
> pass this reordered array back to php script?
> Is it possible to do this and if so can anyone send me the basic code,
> I've never written
On Fri, 18 Jan 2002 18:13:50 +0800, you wrote:
>On Friday 18 January 2002 04:11, Floyd Baker wrote:
>
>> Yes. I was using the url to pass variables without a form.
>>
>> It looks like the javascript idea would cover that now that you remind
>> me. I've used it before to refresh two frames at on
On Friday 18 January 2002 04:11, Floyd Baker wrote:
> Yes. I was using the url to pass variables without a form.
>
> It looks like the javascript idea would cover that now that you remind
> me. I've used it before to refresh two frames at once.
>
> But even so I'd rather not go that way if at a
On Thu, 17 Jan 2002 13:47:06 -0500, you wrote:
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>you could save the password to a database, associated with
>an ID number, then pass the ID number.
>
>DATABASE:
>-
>id| password
>12345 | blah$$
>
>URL:
>form.php?id=12345
I
On Fri, 18 Jan 2002 03:39:21 +0800, you wrote:
>On Friday 18 January 2002 02:36, Floyd Baker wrote:
>
>> The thing is, I *was* using GET in the refresh line and I guess I
>> wasn't saying that. Moreover I want to pass passwords in the same
>> transfer but obviously letting them show up in the ur
On Friday 18 January 2002 02:36, Floyd Baker wrote:
> The thing is, I *was* using GET in the refresh line and I guess I
> wasn't saying that. Moreover I want to pass passwords in the same
> transfer but obviously letting them show up in the url is not cool...
If I understand you correctly you'r
TECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Passing vars w/refresh w/register globals off?
>
>
> On Fri, 18 Jan 2002 01:03:19 +0800, you wrote:
>
> >On Friday 18 January 2002 00:41, Floyd Baker wrote:
> >> On Thu, 17 Jan 2002 07:06:50 +0200, you wrote:
> >>
On Fri, 18 Jan 2002 01:03:19 +0800, you wrote:
>On Friday 18 January 2002 00:41, Floyd Baker wrote:
>> On Thu, 17 Jan 2002 07:06:50 +0200, you wrote:
>> >What do you mean by 'hidden'? If you're talking about a hidden form input,
>> >how can it not be post?
>> >
>> >Bogdan
>>
>> Just saying I've t
On Friday 18 January 2002 00:41, Floyd Baker wrote:
> On Thu, 17 Jan 2002 07:06:50 +0200, you wrote:
> >What do you mean by 'hidden'? If you're talking about a hidden form input,
> >how can it not be post?
> >
> >Bogdan
>
> Just saying I've tried it. Figured it wouldn't work but wasn't sure
> how
On Thu, 17 Jan 2002 07:06:50 +0200, you wrote:
>What do you mean by 'hidden'? If you're talking about a hidden form input,
>how can it not be post?
>
>Bogdan
>
Just saying I've tried it. Figured it wouldn't work but wasn't sure
how 'refresh' might relate to 'post'. Post passing works fine with
What do you mean by 'hidden'? If you're talking about a hidden form input,
how can it not be post?
Bogdan
Floyd Baker wrote:
> Hi..
>
> Got 4.1.1 going and think it's going to work fine. Except for this.
>
> A form calls itself and then uses the menu selection to route through
> a switch to va
Thanks for your reply but for example, my problem is more like the following
php3:
Login');
echo('');
echo('');
}
function vrf_passwd($f1) {
printf("Login=%s",$f1);
}
switch($s) {
case 1: vrf_passwd($login);
break;
default: login();
break;
}
?>
"Rasmus Lerdorf" <[EMAIL PROTECTE
> I've tried other ways but my problem still continues... I can not pass
> $login var out of the function.
>
> I don't have this problem in the two previous functions because I pass this
> variable as function argument, but this last function that doesn't have
> arguments I can't see the $login (e
Thanks for your reply.
I've tried other ways but my problem still continues... I can not pass
$login var out of the function.
I don't have this problem in the two previous functions because I pass this
variable as function argument, but this last function that doesn't have
arguments I can't see
this will ensure that the variable is a POST var vs a GET var too...
function test()
{
global $HTTP_POST_VARS;
echo $HTTP_POST_VARS['login'];
}
--
Chris Lee
[EMAIL PROTECTED]
""Miguel Ribeiro"" <[EMAIL PROTECTED]> wrote in message
9dpgkk$mdb$[EMAIL PROTECTED]">news:9dpgkk$mdb$[EM
You may wish to consider why you need to pass 30 lines of code in a
variable.
If the code is static, store it in include files and then pass it in
depending one a variable
if ($variable=1)
{ include(your30linefile);
}
else
{ inclue(someotherfile);
}
or to use a database query
you can use sessions ..
php.net/sessions
the session are cookies which will remember the user and will copy what you
need on your system, making these 30 lines available only to him for the
time you specify.
Cheers,
Maxim Maletsky
-Original Message-
From: Tanya Brethour [mailto:[EMAIL
one way would be to pass this using Hidden fields if you can submit the form
or else use the session variables to propogate the values across multiple
pages
http://www.php.net/manual/en/ref.session.php
or try out phplib if you are on PHP3
hope that helps
best regards
Ankur Verma
HCL Technolo
34 matches
Mail list logo