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
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
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
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
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
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
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
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
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
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
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]
>
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
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
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!
41 matches
Mail list logo