Re: [PHP] Variables with - in their name

2012-11-18 Thread tamouse mailing lists
On Sun, Nov 18, 2012 at 5:12 AM, Ashley Sheridan wrote: > On Sun, 2012-11-18 at 01:37 -0700, Nathan Nobbe wrote: > >> On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott < >> ron.pigg...@actsministries.org> wrote: >> >> > I have made the following variable in a form: (I am referring the >> > ) >> > >>

Re: [PHP] Variables with - in their name

2012-11-18 Thread Ashley Sheridan
On Sun, 2012-11-18 at 01:37 -0700, Nathan Nobbe wrote: > On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott < > ron.pigg...@actsministries.org> wrote: > > > I have made the following variable in a form: (I am referring the > > ) > > > > > > > $row['promo_code_prefix'] = 42; > > $row['promo_code_su

Re: [PHP] Variables with - in their name

2012-11-18 Thread Nathan Nobbe
On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott < ron.pigg...@actsministries.org> wrote: > I have made the following variable in a form: (I am referring the > ) > > > $row['promo_code_prefix'] = 42; > $row['promo_code_suffix'] = 2; > > echo " $row['promo_code_suffix'] . "\" style=\"text-align: c

Re: [PHP] Variables via url

2012-05-12 Thread Adam Richardson
On Sat, May 12, 2012 at 12:25 PM, Ashley Sheridan wrote: > As this method requires an Apache restart, I don't see what advantage > you have over using an .htaccess file? Performance: http://httpd.apache.org/docs/current/howto/htaccess.html "You should avoid using .htaccess files completely if y

Re: [PHP] Variables via url

2012-05-12 Thread Ashley Sheridan
On Sun, 2012-05-13 at 01:57 +1000, Tom Rogers wrote: > Hello Ashley, > > Saturday, May 12, 2012, 9:15:23 AM, you wrote: > > > > Can someone point me at examples or directions on how I can pass a > > variable via a URL in the following way: > > > http://server.domain.com//script///var

Re: [PHP] Variables via url

2012-05-12 Thread Tom Rogers
Hello Ashley, Saturday, May 12, 2012, 9:15:23 AM, you wrote: > Can someone point me at examples or directions on how I can pass a > variable via a URL in the following way: > http://server.domain.com//script///variable/ > I will only be passing one single /variable/. And I want

Re: [PHP] Variables are empty only in fwrite

2012-03-18 Thread Tamara Temple
On Thu, 15 Mar 2012 11:30:20 -0400, Larry sent: Hello, when I pass a variable whose value originally came from $_GET or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty string. Note that the file is successfully opened and written to by the script, but the variable that originall

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Stuart Dallas
On 15 Mar 2012, at 20:07, Larry wrote: > On Thu, Mar 15, 2012 at 4:03 PM, Matijn Woudt wrote: >> On Thu, Mar 15, 2012 at 8:41 PM, Larry wrote: >>> On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt wrote: On Thu, Mar 15, 2012 at 7:51 PM, Larry wrote: > On Thu, Mar 15, 2012 at 12:21 PM, Mat

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
On Thu, Mar 15, 2012 at 4:03 PM, Matijn Woudt wrote: > On Thu, Mar 15, 2012 at 8:41 PM, Larry wrote: >> On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt wrote: >>> On Thu, Mar 15, 2012 at 7:51 PM, Larry wrote: On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt wrote: > On Thu, Mar 15, 2012 a

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 8:41 PM, Larry wrote: > On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt wrote: >> On Thu, Mar 15, 2012 at 7:51 PM, Larry wrote: >>> On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt wrote: On Thu, Mar 15, 2012 at 4:59 PM, Larry wrote: > On Thu, Mar 15, 2012 at 11:53

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt wrote: > On Thu, Mar 15, 2012 at 7:51 PM, Larry wrote: >> On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt wrote: >>> On Thu, Mar 15, 2012 at 4:59 PM, Larry wrote: On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown wrote: > On Thu, Mar 1

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 7:51 PM, Larry wrote: > On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt wrote: >> On Thu, Mar 15, 2012 at 4:59 PM, Larry wrote: >>> On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown >>> wrote: On Thu, Mar 15, 2012 at 11:30, Larry wrote: > Hello, when I pass a va

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt wrote: > On Thu, Mar 15, 2012 at 4:59 PM, Larry wrote: >> On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown >> wrote: >>> On Thu, Mar 15, 2012 at 11:30, Larry wrote: Hello, when I pass a variable whose value originally came from $_GET or

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Matijn Woudt
On Thu, Mar 15, 2012 at 4:59 PM, Larry wrote: > On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown > wrote: >> On Thu, Mar 15, 2012 at 11:30, Larry wrote: >>> Hello, when I pass a variable whose value originally came from $_GET >>> or $_REQUEST to fwrite, fwrite behaves as if it was passed an emp

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown wrote: > On Thu, Mar 15, 2012 at 11:30, Larry wrote: >> Hello, when I pass a variable whose value originally came from $_GET >> or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty >> string. Note that the file is successfully opene

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Daniel P. Brown
On Thu, Mar 15, 2012 at 11:30, Larry wrote: > Hello, when I pass a variable whose value originally came from $_GET > or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty > string. Note that the file is successfully opened and written to by > the script, but the variable that origina

Re: [PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Cesco
Thank you Il giorno 18/mag/09, alle ore 18:15, Bruno Fajardo ha scritto: This kind of tip is raised in form of notices. So, to enable that, use the following function on top of your scripts: error_reporting(E_ALL | E_NOTICE); Best regards, Bruno. -- PHP General Mailing List (http://www.

Re: [PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Bruno Fajardo
This kind of tip is raised in form of notices. So, to enable that, use the following function on top of your scripts: error_reporting(E_ALL | E_NOTICE); Best regards, Bruno. 2009/5/18 Paul M Foster > On Mon, May 18, 2009 at 05:38:37PM +0200, Cesco wrote: > > > Is it possible to set a parameter

Re: [PHP] Variables not initialized. Is it possible to...

2009-05-18 Thread Paul M Foster
On Mon, May 18, 2009 at 05:38:37PM +0200, Cesco wrote: > Is it possible to set a parameter in PHP 5 to ask the interpreter to > raise an error every time I try to use a variable that wasn't > initialized before ? > > For example, I've write this piece of code in Python: > > > print(DonaldDuck) > >

Re: [PHP] Variables in forms

2008-06-23 Thread Daniel Brown
On Mon, Jun 23, 2008 at 6:24 AM, Ron Piggott <[EMAIL PROTECTED]> wrote: > > Fatal error: Call to undefined function: your_cleaning_function() This is the perfect example as to why NOT to copy-and-paste code from anywhere until you've checked it out yourself first. Jim placed the function

Re: [PHP] Variables in forms

2008-06-23 Thread Thijs Lensselink
Quoting Ron Piggott <[EMAIL PROTECTED]>: Jim what you sent is very helpful. I had an error message when I submitted the form with a POST your_cleaning_function gave me this error: Fatal error: Call to undefined function: your_cleaning_function() I am trying to save the ones that were check

Re: [PHP] Variables in forms

2008-06-23 Thread Nitsan Bin-Nun
Can you send us some of the code so we would be able to help you? On 23/06/2008, Ron Piggott <[EMAIL PROTECTED]> wrote: > > > Jim what you sent is very helpful. > > I had an error message when I submitted the form with a POST > > your_cleaning_function > > gave me this error: > > Fatal error: Call

Re: [PHP] Variables in forms

2008-06-23 Thread Ron Piggott
Jim what you sent is very helpful. I had an error message when I submitted the form with a POST your_cleaning_function gave me this error: Fatal error: Call to undefined function: your_cleaning_function() I am trying to save the ones that were checked to a mySQL table and then notify the user

Re: [PHP] Variables in forms

2008-06-22 Thread Jim Lucas
Ron Piggott wrote: I am writing a form right now. I would like to make the checkbox an array variable. The first part of the array is the component reference, the second part is the package reference. What name would you assign to it that I could use in processing the form in the PHP script

Re: [PHP] Variables

2008-06-19 Thread tedd
At 12:23 AM -0400 6/19/08, Robert Cummings wrote: I've intentionally used request since I don't know if you would do it via $_POST or $_GET. Additionally, one would hope you'd check/filter/process the submitted value before being so careless as to assign it as I've done above. Cheers, Rob. R

Re: [PHP] Variables

2008-06-18 Thread Robert Cummings
On Thu, 2008-06-19 at 15:54 +1200, Byron wrote: > Hi > > I was wondering if this is the correct way to reference a variable from a > file that has been included inside of a function. Also just general > static/global variable usage. > > For example: > > Myqsql_functions.php > >

Re: [PHP] variables

2007-08-26 Thread Richard Lynch
On Mon, August 20, 2007 12:41 am, Augusto Morais wrote: > Hi, > > > I want create a variable based in another variable. Example: > > > $foo (a simple variable); > > $myvar_foo > > > Does it possible? "variable variables" will do it. But 99.% of the time, you're better off just using an array

Re: [PHP] variables

2007-08-19 Thread Micky Hulse
Augusto Morais wrote: I want create a variable based in another variable. Example: Maybe this will give you some ideas?: Good luck! Cheers, Micky -- Wishlists: Switch:

Re: [PHP] variables in CSS in PHP question/problems

2007-03-14 Thread tedd
At 2:15 AM -0500 3/14/07, Richard Lynch wrote: Surf directly to your CSS URL and see what happens. There are several possibiliies: #1. Your CSS has in its output, because you have not convinced your web-server to run your CSS file through PHP to compute the dynamic result. You need something l

Re: [PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Richard Lynch
Surf directly to your CSS URL and see what happens. There are several possibiliies: #1. Your CSS has in its output, because you have not convinced your web-server to run your CSS file through PHP to compute the dynamic result. You need something like this in .htacces: ForceType application/x

Re: [PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Németh Zoltán
2007. 03. 13, kedd keltezéssel 12.12-kor Bruce Gilbert ezt írta: > I stumbled upon this article http://www.chrisjdavis.org/2005/10/16/php-in-css/ > > and was trying out variables with PGP, but can't get it to work. I > wanted to have a variable image that changes on refresh, and also set > the bod

Re: [PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Tijnema !
On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote: I stumbled upon this article http://www.chrisjdavis.org/2005/10/16/php-in-css/ and was trying out variables with PGP, but can't get it to work. I wanted to have a variable image that changes on refresh, and also set the body color with PHP/CSS

Re: [PHP] variables in PHP

2006-02-03 Thread Richard Lynch
Source code. On Fri, February 3, 2006 12:43 am, suresh kumar wrote: > hi, >In my project i assigned name of the text field as > 'loginform'.but i got error msg like 'Undefined > variable' > then i changed the name as 'hiddenfield' but same > error.any one having idea reply me. > > >

Re: [PHP] variables in PHP

2006-02-02 Thread Angelo Zanetti
suresh kumar wrote: hi, In my project i assigned name of the text field as 'loginform'.but i got error msg like 'Undefined variable' then i changed the name as 'hiddenfield' but same error.any one having idea reply me. POST the code so we can see exactly whats going on... -- PHP General

Re: [PHP] Variables and Strings

2005-12-30 Thread Richard Lynch
On Thu, December 29, 2005 3:31 pm, PHP Superman wrote: > Thanks for the responses guys, but what i'm saying is i would like to > return > all the variable names i have in a string, > $String="Blah Blah Blah $VarName Blah Blah Blah"; $VarName = 'xyz'; $String now has "Blah Blah Blah xyz Blah Blah B

RE: [PHP] Variables and Strings

2005-12-30 Thread Jay Blanchard
[snip] > They are all variants of that. All nifty little tools. We should gather > those up someplace...shouldn't we? > Well, I just purchased some domains for that. Who wants to develop it? ;) phpdepository.com phpdepository.org phpdepository.net [/snip] I'll contribute... -- PHP Gener

Re: [PHP] Variables and Strings

2005-12-30 Thread John Nichel
Jay Blanchard wrote: [snip] ah heck is that the same code that _we_ (Jay and me, etc) played with to find SQL queries? or something that was based on it? I remember Robin Vickery coming up with a token based variant which was rather nifty - must look into that agian sometime! [/snip] They are al

RE: [PHP] Variables and Strings

2005-12-30 Thread Jay Blanchard
[snip] I wrote a doohickey once which searched for all variable searching doohickies. [/snip] I cannot tell you how happy I am to see you use the past perfect tense correctly there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables and Strings

2005-12-30 Thread John Nichel
Jay Blanchard wrote: [snip] yeah 'Superman' explain what it is you want to do AND why - then maybe we can give you some help - what you are currently asking is impossible (well actually Jay Blanchard hinted at a way to do it but I firmly believe that its conceptually over your head atm and very p

RE: [PHP] Variables and Strings

2005-12-30 Thread Jay Blanchard
[snip] ah heck is that the same code that _we_ (Jay and me, etc) played with to find SQL queries? or something that was based on it? I remember Robin Vickery coming up with a token based variant which was rather nifty - must look into that agian sometime! [/snip] They are all variants of that. All

Re: [PHP] Variables and Strings

2005-12-30 Thread Jochem Maas
Jay Blanchard wrote: [snip] yeah 'Superman' explain what it is you want to do AND why - then maybe we can give you some help - what you are currently asking is impossible (well actually Jay Blanchard hinted at a way to do it but I firmly believe that its conceptually over your head atm and very p

RE: [PHP] Variables and Strings

2005-12-30 Thread Jay Blanchard
[snip] yeah 'Superman' explain what it is you want to do AND why - then maybe we can give you some help - what you are currently asking is impossible (well actually Jay Blanchard hinted at a way to do it but I firmly believe that its conceptually over your head atm and very probably not a good solu

Re: [PHP] Variables and Strings

2005-12-30 Thread Jochem Maas
Jim Moseby wrote: Thanks for the responses guys, but what i'm saying is i would ... I believe what Jochem is trying to tell you is that when you assign the string variable, the variable names are expanded to their values, so the names are no longer available. exactly - nicely put Jim. C

RE: [PHP] Variables and Strings

2005-12-29 Thread Jim Moseby
> > Thanks for the responses guys, but what i'm saying is i would > like to return > all the variable names i have in a string, > $String="Blah Blah Blah $VarName Blah Blah Blah"; > $Vars=myspecialfunction($Varname); > echo ($Vars); > > that code would produce $Varname, if there were more > var

RE: [PHP] Variables and Strings

2005-12-29 Thread Jay Blanchard
[snip] Thanks for the responses guys, but what i'm saying is i would like to return all the variable names i have in a string, $String="Blah Blah Blah $VarName Blah Blah Blah"; $Vars=myspecialfunction($Varname); echo ($Vars); that code would produce $Varname, if there were more variables it would

Re: [PHP] Variables and Strings

2005-12-29 Thread PHP Superman
Thanks for the responses guys, but what i'm saying is i would like to return all the variable names i have in a string, $String="Blah Blah Blah $VarName Blah Blah Blah"; $Vars=myspecialfunction($Varname); echo ($Vars); that code would produce $Varname, if there were more variables it would also re

Re: [PHP] Variables and Strings

2005-12-29 Thread Jochem Maas
PHP Superman wrote: Hey everyone, is there a way to return all the variables from a string into an array, for example $Var1="Yo"; $Var2="Man"; $SQL="SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2"; $AllVars=MySpecialFunction($SQL); your function MySpecialFunction() will recieve the follo

Re: [PHP] Variables and Strings

2005-12-28 Thread Curt Zirzow
On Wed, Dec 28, 2005 at 10:30:04PM -0500, PHP Superman wrote: > Hey everyone, is there a way to return all the variables from a string into > an array, for example > $Var1="Yo"; > $Var2="Man"; > $SQL="SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2"; > $AllVars=MySpecialFunction($SQL); > prin

Re: [PHP] Variables not available

2005-09-12 Thread Dotan Cohen
On 9/12/05, Ryan A <[EMAIL PROTECTED]> wrote: > > On 9/12/2005 9:00:46 AM, Dotan Cohen ([EMAIL PROTECTED]) wrote: > > I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get > > variables are not available in my scripts. For instance, in > > file.php?foo=bar the variable $foo is empty

Re: [PHP] Variables not available

2005-09-12 Thread Ryan A
On 9/12/2005 9:00:46 AM, Dotan Cohen ([EMAIL PROTECTED]) wrote: > I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get > variables are not available in my scripts. For instance, in > file.php?foo=bar the variable $foo is empty. Same thing for variables > passed in forms (get or pos

Re: [PHP] Variables not available

2005-09-12 Thread Dotan Cohen
On 9/12/05, Burhan Khalid <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get > > variables are not available in my scripts. For instance, in > > file.php?foo=bar the variable $foo is empty. Same thing for variables > > passed in

Re: [PHP] Variables not available

2005-09-12 Thread Burhan Khalid
Dotan Cohen wrote: I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get variables are not available in my scripts. For instance, in file.php?foo=bar the variable $foo is empty. Same thing for variables passed in forms (get or post), which is how I came across this. What could cau

Re: [PHP] Variables in stored txt

2005-05-31 Thread Richard Lynch
On Tue, May 31, 2005 12:18 pm, Niels Riis Kristensen said: > Hi. I have a problem that consist of a desire to use preformatted > text in a while-loop while inserting data from another search. The > code is as follows: > > > > > $get_var1 = mysql_query("SELECT * FROM table1 WHERE id

Re: [PHP] Variables in stored txt

2005-05-31 Thread Niels Riis Kristensen
Oh, I get it. I have been very poor at explaining my problem. I have a table, table1, in which I have standard text for letters. I would like to put data from table2 in the letters, so that the data is automatically placed in the letter through code in the standard text. It sounds complicat

RE: [PHP] Variables in stored txt

2005-05-31 Thread Jay Blanchard
Quite sending this over and over.it is taking a while for the e-mail to get to the list -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php variables in a backtick command

2004-12-11 Thread Jonathan Duncan
So I tried it that way and it worked, that is annoying though, having to add extra lines to the code and assign the contents of one variable to another. Any way around this? Jonathan "Jonathan Duncan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am trying to run a shell comm

Re: [PHP] Variables from database

2004-12-05 Thread Marek Kilimajer
Stuart Felenstein wrote: I haven't try this yet but wondering if it's possible. Can I do something like this: select fieldone from table ; $myvar = $fieldone ? And more so could I do it with a where clause ? i.e. select fieldone from table where fieldone = 3 $myvar = $fieldone ? This is probably

Re: [PHP] Variables not passed to next page

2004-08-01 Thread Jason Wong
On Sunday 01 August 2004 02:28, Andre Dubuc wrote: > Yes the first page has the appropriate tags: > > {edit-news.php] > . . . Good. > The second and third pages [edit-news-x.php/ edit-submit.php] are pure php > (a pass-through page) -- I wasn't aware they needed these tags as well. Hmm > . .

Re: [PHP] Variables not passed to next page

2004-07-31 Thread Andre Dubuc
On Saturday 31 July 2004 02:12 pm, Jason Wong wrote: > On Sunday 01 August 2004 01:40, Andre Dubuc wrote: > > I have attempted to post variables from a simple page: edit-news.php to > > edit-news-x.php, then load them into a session for re-use -- I use output > > buffering. They do not pass. The co

Re: [PHP] Variables not passed to next page

2004-07-31 Thread Jason Wong
On Sunday 01 August 2004 01:40, Andre Dubuc wrote: > I have attempted to post variables from a simple page: edit-news.php to > edit-news-x.php, then load them into a session for re-use -- I use output > buffering. They do not pass. The code: > > > [edit-news] > > > $news = "A few paragraphs"

Re: [PHP] Variables Help

2004-05-14 Thread John Nichel
Ford, Mike [LSS] wrote: On 13 May 2004 19:52, John Nichel wrote: Monty wrote: Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defin

RE: [PHP] Variables Help

2004-05-13 Thread Ford, Mike [LSS]
On 13 May 2004 19:52, John Nichel wrote: > Monty wrote: > > Is there any way to get JUST the user-defined variables in PHP? > > Problem with get_defined_vars() is that it contains everything, > > including server and environment vars, and there's no easy way to > > keep just the user-defined vars

Re: [PHP] Variables Help

2004-05-13 Thread Jason Barnett
//bunch of PHP code... $current_vars = get_defined_vars(); $user_defined_vars = array_diff($current_vars,$starting_vars); ... ---John Holmes... Oh I like that... wish I would have suggested that one! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
John W. Holmes wrote: //bunch of PHP code... $current_vars = get_defined_vars(); $user_defined_vars = array_diff($current_vars,$starting_vars); ... ---John Holmes... This cat is skinned. :) -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.

Re: [PHP] Variables Help

2004-05-13 Thread John W. Holmes
From: "Monty" <[EMAIL PROTECTED]> > >> Is there a variable that I can call that will return an array with any > >> variables I have set? I'd want to call it and then parse and display > > current > >> values of, in this case, a and b. Hope that makes sense. > > > > Like something that "Returns an a

Re: [PHP] Variables Help

2004-05-13 Thread Jason Barnett
Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of the array created by get_defined_vars. Monty Why not just unset t

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
Monty wrote: Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of the array created by get_defined_vars. Monty foreac

Re: [PHP] Variables Help

2004-05-13 Thread Monty
>> Is there a variable that I can call that will return an array with any >> variables I have set? I'd want to call it and then parse and display > current >> values of, in this case, a and b. Hope that makes sense. > > Like something that "Returns an array of all defined variables"?? > > http:/

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
John W. Holmes wrote: From: "Steve Douville" <[EMAIL PROTECTED]> Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like something that "Ret

Re: [PHP] Variables Help

2004-05-13 Thread John W. Holmes
From: "Steve Douville" <[EMAIL PROTECTED]> > $a = "yes"; > $b = "no"; > ?> > > Is there a variable that I can call that will return an array with any > variables I have set? I'd want to call it and then parse and display current > values of, in this case, a and b. Hope that makes sense. Like som

Re: [PHP] Variables Help

2004-05-13 Thread Adrian
$GLOBALS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables Help

2004-05-13 Thread Richard Davey
Hello Steve, Thursday, May 13, 2004, 6:19:07 PM, you wrote: SD> Is there a variable that I can call that will return an array with any SD> variables I have set? I'd want to call it and then parse and display current SD> values of, in this case, a and b. Hope that makes sense. get_defined_vars();

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
My mistake. Good one on the spelling I can't believe I missed that one alex hogan > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 12:26 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Variables insid

Re: [PHP] Variables inside a function

2004-03-08 Thread Jason Wong
On Tuesday 09 March 2004 02:03, Alex Hogan wrote: > If I read his post correctly he was looking to make blah() available and > not $blah. The OP says "so that I can use $blah anywhere in the script?", which to me means that $blah needs to be global ... [snip] > Of course obviously being one of

RE: [PHP] Variables inside a function

2004-03-08 Thread Jay Blanchard
[snip] I then echo $blah; somewhere else in the script but nothing is echo'd. How do I make it so that I can use $blah anywhere in the script? [/snip] I went back and re-read the post, and his question above is the important one First you must return something from the function, then you must

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
ndensintion..., maybe I can return the favor sometime. alex hogan > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 11:49 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Variables inside a function > > On Tuesday 09 Ma

Re: [PHP] Variables inside a function

2004-03-08 Thread Jason Wong
On Tuesday 09 March 2004 01:44, Alex Hogan wrote: > Don't you need to set a return? > > Return $blah; > > At the bottom of your function block. That does not make the variable $blah available elsewhere in the program. The OP should take a look at manual > Variables > Variable scope. -- Jason Wo

RE: [PHP] Variables inside a function

2004-03-08 Thread Alex Hogan
Don't you need to set a return? Return $blah; At the bottom of your function block. alex hogan > -Original Message- > From: Nathan Croker [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 07, 2004 6:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Variables inside a function > > I am r

RE: [PHP] Variables inside a function

2004-03-08 Thread Jay Blanchard
[snip] eg. function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; } [/snip] function blah ($bl,$ah) { $bl++; $ah++; $blah=$bl+$ah; return $blah; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables not passing...

2004-03-04 Thread Chase
One other irritation for the evening... The MySQL query that I am trying to create needs to use the date the user enters and then add " @ 12:01am EST" to it so it will acutally match the data in the table. Below is my quesry line, but I don't know how to add that chunk to each of the variables...

Re: [PHP] Variables not passing...

2004-03-04 Thread Chase
Thank you! It looks like it was a combination of my NOT using the $_POST and the fact that my JScript wasn't allowing the variables to pass... WHO KNEW?!? THANKS!!! Chase <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a session_start() on the second page ? > > Also i di

Re: [PHP] Variables not passing...

2004-03-04 Thread daniel
Is there a session_start() on the second page ? Also i didnt know u could set an action to a jscript popup, it may not be posting to the second page. What you could try is posting to the second page like a normal post, u need to do something like session_start(); $_SESSION['startdate'] = $_POST[

Re: [PHP] variables

2004-02-19 Thread Dominique ANOKRE
ok thanks pb solved thank you everybody - Original Message - From: "Richard Davey" <[EMAIL PROTECTED]> To: "Dominique ANOKRE" <[EMAIL PROTECTED]> Cc: "Php List" <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 5:52 PM Subject: Re: [P

Re: [PHP] variables

2004-02-19 Thread Richard Davey
Hello Dominique, Thursday, February 19, 2004, 5:49:43 PM, you wrote: DA> how can i put the character \ in a variable ? DA> I've done the code below but errors occurs : DA> $barre_oblique = "\"; DA> Parse error: parse error, unexpected T_STRING DA> Please help $barre_oblique = "\\"; -- Bes

Re: [PHP] variables

2004-02-19 Thread Adam Voigt
Whoops, mistyped on my reply, you need to escape it with the single quotes to. On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote: > hello, > > > how can i put the character \ in a variable ? > > I've done the code below but errors occurs : > > $barre_oblique = "\"; > > > Parse error: pa

Re: [PHP] variables

2004-02-19 Thread Adam Voigt
Escape it. $string = "\\"; Or, use single quotes: $string = '\'; On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote: > hello, > > > how can i put the character \ in a variable ? > > I've done the code below but errors occurs : > > $barre_oblique = "\"; > > > Parse error: parse error,

RE: [PHP] Variables??

2004-02-15 Thread Julien Wadin
give the corresponding source code are you using POST or GET ? What about REGISTER_GLOBALS ??? PS : NO MAILS IN HTML ON THE LIST, PLEASE -Message d'origine- De : Alessandro Rodiani [mailto:[EMAIL PROTECTED] Envoyé : dimanche 15 février 2004 21:29 À : [EMAIL PROTECTED]; [EMAIL PROTECTED]

Re: [PHP] Variables not working!

2004-01-28 Thread Alvaro Zuniga
Try this for a generic fix if it is the globals issue: Place this somewhere to set to TRUE or FALSE when needed $GLOBAL_FIX = TRUE; use an include on every script: if($GLOBAL_VARS_FIX) { if( phpversion() >= '4.2.0' ) { extract($_POST); extract($_GET); extract($_SERVER);

RE: [PHP] Variables not working!

2004-01-20 Thread Larry Brown
It is most likely globals. Access the variables by... echo $_GET['fname']; or $_POST['fname']; if you are using post which it doesn't appear you do. Larry PS it is adviseable to leave globals alone in php.ini since it is set that way for security concerns. -Original Message- From: Kau

Re: [PHP] Variables not working!

2004-01-20 Thread Rory McKinley
On 19 Jan 2004 at 21:43, Kaushan wrote: > Hi, > > I am new to PHP scripting and struggling with the following problem. > > I have two files, an HTML file and a PHP file. > HTML file contains a form with one text field and a submit button. > When a user pressed the submit button, it calls the php

Re: [PHP] Variables

2004-01-15 Thread Brian V Bonini
On Thu, 2004-01-15 at 16:47, Alex Hogan wrote: > How do you insert a php variable into a javascript function? > For instance; > function redirect() { location = ; } -- BrianGnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server:

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH> How do you insert a php variable into a javascript function? AH> function redirect() { location = ; } function redirect () { location = ; } or use: function redirect () { location = ; } The short syntax only works with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH> How do you insert a php variable into a javascript function? AH> function redirect() { location = ; } function redirect () { location = ; } or use: function redirect () { location = ; } The short syntax only works with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH> How do you insert a php variable into a javascript function? AH> function redirect() { location = ; } function redirect () { location = ; } or use: function redirect () { location = ; } The short syntax only works with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General

Re: [PHP] Variables

2004-01-15 Thread Richard Davey
Hello Alex, Thursday, January 15, 2004, 9:47:27 PM, you wrote: AH> How do you insert a php variable into a javascript function? AH> function redirect() { location = ; } function redirect () { location = ; } -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP

Re: [PHP] Re: PHP & Variables

2003-12-06 Thread John Nichel
John W. Holmes wrote: Lloyd Bayley wrote: Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. "Please learn HTML" is offensive? Please... I even gave you the _correct_ answer that involves htmlentities(), otherwise you'll be b

Re: [PHP] Re: PHP & Variables

2003-12-06 Thread John W. Holmes
Lloyd Bayley wrote: Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. "Please learn HTML" is offensive? Please... I even gave you the _correct_ answer that involves htmlentities(), otherwise you'll be back here with another qu

[PHP] Re: PHP & Variables

2003-12-06 Thread Lloyd Bayley
Greg, Sheesh! I had neglected to do that...I've been working with a few different languages and I'm starting to confuse them I think. Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. Lloyd. :-) At 09:58 AM 7/12/2003, you wr

[PHP] Re: PHP & Variables

2003-12-06 Thread Greg Beaver
Hi Lloyd, use "quote"s around your values echo ""; Regards, Greg -- phpDocumentor http://www.phpdoc.org Lloyd Bayley wrote: Greetings All, Have a small problem that I just can't work out. I know it's an easy one but it's got me stumped... I have some code to pull a question out of a database

Re: [PHP] Variables scope question

2003-12-03 Thread Mike D
NEVERMIND - some user error there... (happens once in a while) It's been a long day ;-) Thanks - MD On 12/3/03 3:36 PM, "Martin Towell" <[EMAIL PROTECTED]> wrote: > This doesn't sound right. It's doesn't behave like this for me. > > Can you supply an example? > > Martin > >> -Original M

  1   2   3   >