[PHP] passing vars

2004-02-24 Thread Rick Liwczak
need some help. Quite obviously I am new so bare with meI am trying to pass a value (ENGLISH OR FRENCH) when the user clicks on either one of two images. If image 1, the value is english, if image 2 the value is french. Once they click the image which I use the following code (and it is proba

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

[PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Valentin
Hi, is any way to pass a $Var from one to other php pages without using and Cookies? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] passing vars. betn. php and javascript

2002-04-26 Thread Pushkar Pradhan
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 javascript? Thanks, -Pushkar S. Pradhan -- PHP General Mailing

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

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

2002-01-16 Thread Floyd Baker
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 various refresh redirects... 'Hidden' isn't working and it's not post, get, cookie, etc. Can it be done? TIA Floyd -- -- PHP

[PHP] Passing vars...

2001-11-10 Thread Ashley M. Kirchner
Small problem... I used to have a single file that included others based on some variables set. However, I've decided instead of including a different file, I would set a location header and redirect the browser to the (once included) file instead. Problem is, now my variables aren't being

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

[PHP] Passing vars between functions (with POSTs)

2001-05-14 Thread Miguel Ribeiro
Hi, I'm struggling to pass from 3 functions (and one of them have a html form POST) one simple variable called $login. Once in the function (that have form with POST) is calling a php3 without passing the $login (like: common.php3&login='someone') and since the next function doesn't have any rel

Re: [PHP] Passing vars

2001-02-15 Thread Andrew Hill
d 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 PROTECTED]] > Sent: Thursday, February 15, 2001 3:20 AM > To: [EMAIL PROTECTED] >

RE: [PHP] Passing vars

2001-02-15 Thread Maxim Maletsky
PROTECTED]] Sent: Thursday, February 15, 2001 3:20 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] Passing vars Quick question.. If I have like 6 variables to pass to another PHP script... and some of the vars are actually multiple lines of text (lets say over 30 lines). What is

Re: [PHP] Passing vars

2001-02-14 Thread Ankur Verma
Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Tanya Brethour" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 11:50 PM Subject: [PHP] Passing vars > > Quick question.. > &g

[PHP] Passing vars

2001-02-14 Thread Tanya Brethour
Quick question.. If I have like 6 variables to pass to another PHP script... and some of the vars are actually multiple lines of text (lets say over 30 lines). What is the best way of doing this? I would like to avoid doing something like test.php?cheese=(30 lines of stuff) Thanks in advance!