Re: [PHP] Passing a variable which is an aggregate function

2008-10-10 Thread The Doctor
On Fri, Oct 10, 2008 at 01:48:01PM -0400, Andrew Ballard wrote: > On Fri, Oct 10, 2008 at 1:33 PM, The Doctor <[EMAIL PROTECTED]> wrote: > > What I am trying to do is to > > pass an aggregate variable which is the sum of > > some smaller variable. > > > > This var also need to finish in the form of

Re: [PHP] Passing a variable which is an aggregate function

2008-10-10 Thread Andrew Ballard
On Fri, Oct 10, 2008 at 1:33 PM, The Doctor <[EMAIL PROTECTED]> wrote: > What I am trying to do is to > pass an aggregate variable which is the sum of > some smaller variable. > > This var also need to finish in the form of $.YY . > > Pointers please. Would you care to explain a little further

Re: [PHP] Passing a variable which is an aggregate function

2008-10-10 Thread Jim Lucas
The Doctor wrote: > What I am trying to do is to > pass an aggregate variable which is the sum of > some smaller variable. > > This var also need to finish in the form of $.YY . > > Pointers please. Most of the above can be done using number_format(). The dollar sign you will have to add yo

[PHP] Passing a variable which is an aggregate function

2008-10-10 Thread The Doctor
What I am trying to do is to pass an aggregate variable which is the sum of some smaller variable. This var also need to finish in the form of $.YY . Pointers please. -- Member - Liberal International This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] God, Queen and country! Beware Anti

Re: [PHP] passing a variable with php_self

2005-10-03 Thread Jeffrey Sambells
oops, that should be htmlentities, not htmlspecialchars. - Jeff On 3-Oct-05, at 11:51 AM, Jeffrey Sambells wrote: $PHP_SELF should not be used because it will not work without register_globals being enabled. Rather, you should use $_SERVER ['PHP_SELF'] for it as above however... Don't for

Re: [PHP] passing a variable with php_self

2005-10-03 Thread Jeffrey Sambells
can someone show me the right way to do the following... I want to pass a variable to a self submitting link. Thanks, $PHP_SELF should not be used because it will not work without register_globals being enabled. Rather, you should use $_SERVER ['PHP_SELF'] for it as above however

Re: [PHP] passing a variable with php_self

2005-09-27 Thread Gustav Wiberg
- Original Message - From: "A.J. Brown" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 27, 2005 3:26 PM Subject: Re: [PHP] passing a variable with php_self "> works well too -- Sincerely, A.J. Brown "Jim Moseby" <[EMAIL PROTECTED]>

Re: [PHP] passing a variable with php_self

2005-09-27 Thread Norbert Wenzel
A.J. Brown wrote: "> works well too works only if register_globals is on, doesn't it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing a variable with php_self

2005-09-27 Thread A.J. Brown
"> works well too -- Sincerely, A.J. Brown "Jim Moseby" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> -Original Message- >> From: Ross [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, September 27, 2005 8:58 AM >> To: php

Re: [PHP] passing a variable with php_self

2005-09-27 Thread Torgny Bjers
Ross wrote: > can someone show me the right way to do the following... > > > > I want to pass a variable to a self submitting link. Easiest way to do that is to use sprintf() or printf(): %s', $_SERVER['PHP_SELF'], $link_title); ?> Or, like you did with inline code in the HTML: click my sel

RE: [PHP] passing a variable with php_self

2005-09-27 Thread Jim Moseby
> -Original Message- > From: Ross [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 27, 2005 8:58 AM > To: php-general@lists.php.net > Subject: [PHP] passing a variable with php_self > > > > can someone show me the right way to do the following... >

RE: [PHP] passing a variable with php_self

2005-09-27 Thread Jay Blanchard
[snip] can someone show me the right way to do the following... I want to pass a variable to a self submitting link. [/snip] echo $_GET['action'] . "\n"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] passing a variable with php_self

2005-09-27 Thread Ross
can someone show me the right way to do the following... I want to pass a variable to a self submitting link. Thanks, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing a variable through 2 required files embedded in Javascript

2005-04-29 Thread Richard Lynch
On Thu, April 28, 2005 9:08 pm, Mark Cain said: > What a mess this has turned out to be -- But perhaps you can help me. > > I have a dynamic site that pulls headers, navigation, and footers from > text files. The content for the pages is pulled from mySQL. > > On each page I have a JavaScript rota

Re: [PHP] passing a variable through 2 required files embedded in Javascript

2005-04-29 Thread Petar Nedyalkov
On Friday 29 April 2005 07:08, Mark Cain wrote: > What a mess this has turned out to be -- But perhaps you can help me. > > I have a dynamic site that pulls headers, navigation, and footers from text > files. The content for the pages is pulled from mySQL. > > On each page I have a JavaScript rota

[PHP] passing a variable through 2 required files embedded in Javascript

2005-04-28 Thread Mark Cain
What a mess this has turned out to be -- But perhaps you can help me. I have a dynamic site that pulls headers, navigation, and footers from text files. The content for the pages is pulled from mySQL. On each page I have a JavaScript rotating banner that displays "Upcoming Events." The banner

[PHP] passing a variable value of PHP into the alert of JavaScript.

2004-03-30 Thread Prabu Subroto
Dear my friends... I want to make an alert which can display a value from the database. I am meaning : how can I pass a value of a variable from PHP into JavaScript alert ( alert("$Firstname, $LastName and $Address"); Is it possible? -- __

Re: [PHP] Passing a Variable to PHP Via the URL

2002-06-11 Thread Philip Olson
> My understanding is that when passing a querystring to PHP via the URL > with the GET method, PHP will automatically create a variable with the > name and value from the querystring. I'm trying to do this and it's > not working. Yes, if you have: example.com/foo.php?id=33 In the old days,

[PHP] Passing a Variable to PHP Via the URL

2002-06-11 Thread jsegovia
My understanding is that when passing a querystring to PHP via the URL with the GET method, PHP will automatically create a variable with the name and value from the querystring. I'm trying to do this and it's not working. Here's my code from an online tutorial (angle braces replaced with curl

Re: SV: SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 10:28 AM, Daniel Alsén wrote: > I use the variable $change to set the text size in my stylesheet: > > if (isset($text_size)) {echo $text_size;} else {echo "10"; $text_size = > 10;} > > And i set the variable via a link: > > (or change=dec) > > Now - i don´t want

SV: SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
> Yes, there is a way to do it without using any forms. I may be able to > help you better if you could show me the relevant code -- I'm not sure > if what I have in mind is really applicable to what you want to do. It´s not really advanced: session_start(); session_register('text_size'); if (

Re: SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 10:11 AM, Daniel Alsén wrote: >> You could use a form and have a hidden vield that contains a value. >> The >> user would have to click the submit button for the variable/value to >> carry >> over though. > > I thought about that. But i have two possible values

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Adrian Murphy
AIL PROTECTED]> Sent: Tuesday, April 02, 2002 4:02 PM Subject: [PHP] Passing a variable invisibly via a href? > Hi, > > i need to pass a variable by letting the user click on a link. Right now i > do it like: page.php?variable=value > > However, i don´t want the variable, a

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Tyler Longren
That might not be such a good idea then. Tyler - Original Message - From: "Daniel Alsén" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, April 02, 2002 9:11 AM Subject: SV: [PHP] Passing a variable invisibly via a href? > >

SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
> You could use a form and have a hidden vield that contains a value. The > user would have to click the submit button for the variable/value to carry > over though. I thought about that. But i have two possible values (via two links) that could be passed and i can´t really get it together. Two

Re: Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Adam Voigt
<[EMAIL PROTECTED]> > To: "PHP List" <[EMAIL PROTECTED]> > Sent: Tuesday, April 02, 2002 9:02 AM > Subject: [PHP] Passing a variable invisibly via a href? > > > > Hi, > > > > i need to pass a variable by letting the user click on a link. Righ

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Tyler Longren
Alsén" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, April 02, 2002 9:02 AM Subject: [PHP] Passing a variable invisibly via a href? > Hi, > > i need to pass a variable by letting the user click on a link. Right now i > do it like: page.php?

[PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
Hi, i need to pass a variable by letting the user click on a link. Right now i do it like: page.php?variable=value However, i don´t want the variable, and it´s value to appear in the adress bar of the browser. And i don´t want people to be able to pass the same variable by reloading the destinat

Re: [PHP] passing a variable

2001-03-06 Thread Rick St Jean
George you are doing this backwards. Someone posted the code to do this the right way last night. I would use the concatination of a third variable. $field = "blah"; $loops = 10; for ($i=0; $i < $loops; $i++) { $displayField = $field . $i; echo "\n"; } Rick

[PHP] passing a variable

2001-03-06 Thread george
I am trying to build a dynamic form, and I am using the code below to let the user ,name the fields that are generated,but i want to give the user the option of changing individual field sizes but I cant get it to work. TIA george for ($i=0; $i < $fields; $i++) { $fieldName = "field$i"; ech