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

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-general@lists.php.net >> Subject: [PHP] passing a

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... > > > > > I want to pass a variab

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

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

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,

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

2002-04-02 Thread Adrian Murphy
or use javascript or if you really wanted you could encrypt the variable pass it via the url and then decrypt it on the next page! to avoid a reload put no-cache in the header. - Original Message - From: "Daniel Alsén" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday,

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? > > You could use a form and have a hidden v

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

2002-04-02 Thread Adam Voigt
You could actually have javascript auto-submit the form if you didn't want the button like: document.form1.submit(); Adam Voigt [EMAIL PROTECTED] On Tue, 2 Apr 2002 09:08:18 -0600, Tyler Longren <[EMAIL PROTECTED]> wrote: > You could use a form and have a hidden vield that contains a value.

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

2002-04-02 Thread Tyler Longren
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. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: "Daniel Alsén" <[EMA

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