Re: [PHP] Passing vars w/refresh w/register globals off?

2003-11-25 Thread Kim Steinhaug
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

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread John Manko
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,

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Jeff Harris
|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

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Valentin
Thanks John! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Valentin
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

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread John Manko
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

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Robert Cummings
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

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
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

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Erik Price
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

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Kevin Stone
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

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
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

RE: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
- > 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

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Kevin Stone
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

RE: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Leotta, Natalie (NCI/IMS)
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

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Jason Wong
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

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
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

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Jason Wong
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

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-18 Thread Floyd Baker
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

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-18 Thread Jason Wong
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

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
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

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
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

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Jason Wong
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

RE: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread scott [gts]
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: > >>

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
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

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Jason Wong
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

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
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

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-16 Thread Bogdan Stancescu
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

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-16 Thread Miguel Ribeiro
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

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-16 Thread Rasmus Lerdorf
> 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

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-16 Thread Miguel Ribeiro
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

Re: [PHP] Passing vars between functions (with POSTs)

2001-05-15 Thread Chris Lee
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

Re: [PHP] Passing vars

2001-02-15 Thread Andrew Hill
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

RE: [PHP] Passing vars

2001-02-15 Thread Maxim Maletsky
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

Re: [PHP] Passing vars

2001-02-14 Thread Ankur Verma
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