RE: [PHP] Storing Java Script Varable into php variable

2001-07-20 Thread Johnson, Kirk
> -Original Message- > From: Mike Mike [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 20, 2001 9:34 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Storing Java Script Varable into php variable > > My question is I have some java script I want to store > the java sc

[PHP] Storing Java Script Varable into php variable

2001-07-20 Thread Mike Mike
Hello, I look through the php-general list database but could not find the answer. My question is I have some java script I want to store the java script variable into a php variable so I can submit it into a database. Here is the Java sript code. <-- function show(){ if (!document.

Re: [PHP] Variable dump on error

2001-07-19 Thread Rasmus Lerdorf
Read http://php.net/set_error_handler and http://php.net/trigger_error Pay particular attention to the user notes on the set_error_handler() page. -Rasmus On Thu, 19 Jul 2001, Randy Miller wrote: > Using mod_perl when an error is encountered, I have a customized error > screen that is defined

[PHP] Variable dump on error

2001-07-19 Thread Randy Miller
Using mod_perl when an error is encountered, I have a customized error screen that is defined in http.conf that is displayed to the user. This is just a customized 500 page that then emails me which page crashed and all of the local variables. I can't seem to find a way to do this in PHP 4.0.

Re: [PHP] variable

2001-07-18 Thread chris schneck
$foo = "foo definition"; - Original Message - From: "Jeremy Morano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 1:55 PM Subject: [PHP] variable > hi > is there any way I can pass a variable without using requir

Re: [PHP] variable

2001-07-18 Thread Tyler Longren
you can pass them in the url: Test Then, $i will be available on mypage.php in the variable $new_i Tyler - Original Message - From: "Jeremy Morano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 3:55 PM Subject: [PHP] variable > hi

[PHP] variable

2001-07-18 Thread Jeremy Morano
hi is there any way I can pass a variable without using require() or include()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Variable name into string

2001-07-18 Thread Maxim Volkov
Hello, Manual and news group search returned to result on this topic. (or May be I miss something.) The objective : to be able to identify (print, compare, etc.) variable name as a String to be able to override class method based on variable name. Variable will be an associative array. Conside

Re: [PHP] Variable name declarations?

2001-07-15 Thread teo
Hi Kent! On Sat, 14 Jul 2001, Kent Sandvik wrote: > > > function sum_array( $input_array ) > > { > > var $index; > > var $sum = 0; > > > > for( $index = 0; $index < count( $input_array ); $index++ ) > > $sum += $input_array[ $index ]; > > > > return $sum; > > } > > The a

RE: [PHP] Variable name declarations?

2001-07-14 Thread Kent Sandvik
> function sum_array( $input_array ) > { > var $index; > var $sum = 0; > > for( $index = 0; $index < count( $input_array ); $index++ ) > $sum += $input_array[ $index ]; > > return $sum; > } The array variable issue has indeed bitten me a couple of times, so now all my arr

Re: [PHP] Variable name declarations?

2001-07-13 Thread Rasmus Lerdorf
> Does anyone else have any thoughts on this? error_reporting = E_ALL in your php.ini file and PHP will warn you whenever you use an unitialized variable. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

RE: [PHP] Variable name declarations?

2001-07-13 Thread scott [gts]
> -Original Message- > From: Matthew Aznoe [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Variable name declarations? > > However, I do have one complaint about PHP that seems to have a tendency to > bite me far too often, and that is the lack of variable declaration.

Re: [PHP] Variable name declarations?

2001-07-13 Thread Zak Greant
Hi Matthew, Set your error_reporting level to E_ALL. The parser will then report the use of undeclared variables. --zak - Original Message - From: "Matthew Aznoe" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Friday, July 13, 2001 2:22

[PHP] Variable name declarations?

2001-07-13 Thread Matthew Aznoe
I have to agree that strong typing is not a good fit with PHP. It really limits the flexibility of the language that is, at least to me, one it its strongest appeals. Often, strong typing can be overly restrictive, and free typing, when combined with good comments and documentation which shoul

[PHP] Variable next to variable question...

2001-07-11 Thread Jeff Lewis
Looks like I should have been keeping a close eye on that thread... I am pulling fields from a database and displaying them on my page. I am adding a checkbox next to the name and storing the name in the checkbox value. Anyway, on submission I want to process them but am having problems... p

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread scott [gts]
ldren( $C_Last ); if you used individual variables, you could not do that in any easy or efficient way. > -Original Message- > From: Jeff Oien [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 11, 2001 1:29 PM > To: PHP > Subject: FW: [PHP] Variable Next To Variable? > >

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Matthew Luchak
how about : if ((isset($number ))&&($number <= $max)){ while ($number > 0;$number -- ) { echo 'Last Name';} } if you're not crazy about having the fields labled in reverse order you could push to an array and then arsort the array. Ma

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Chadwick, Russell
fills out 8 for the max, and then only ends up filling in C_Last_Name1, C_Last_Name4, C_Last_Name7 you wont have to worry about it. -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:29 AM To: PHP Subject: FW: [PHP] Variable Next To Variable

FW: [PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
; $Number_Children = 5; > $i = $Number_Children; > while ($i--) { > if (! $Children_Last[$i]) { > // code > } > } > > > -----Original Message- > > From: Jeff Oien [mailto:[EMAIL PROTECTED]] > > Subject: [PHP] Variable Next To Variabl

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Chadwick, Russell
I think you want if (!(${"C_Last_Name$y"})) { or if (!(${"C_Last_Name".$y})) { -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:22 AM To: PHP Subject: RE: [PHP] Variable Next To Variable? I like this idea but it

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
I like this idea but it's giving me a parse error on this code: if (!{$C_Last_Name}{$y}) I'm looking at the other ideas also. Jeff Oien > > if (!$C_Last_Name$y) { > > The form submitting information to this code has field name like > > C_Last_Name1 C_Last_Name2 depending on how many Child

Re: [PHP] Variable Next To Variable?

2001-07-11 Thread Francis Fillion
You could use an array: like Way better this way and you oculd do: $y=1; while($y > Sorry if this has been brought up 100 times. > > I want to do this: > > $y = "1"; > > while ($y <= "$Number_Children") { > if (!$C_Last_Name$y) { > error stuff; > $

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread scott [gts]
--) { if (! $Children_Last[$i]) { // code } } > -Original Message- > From: Jeff Oien [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Variable Next To Variable? > > > Sorry if this has been brought up 100 times. > I want to do this: > &g

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Boget, Chris
> if (!$C_Last_Name$y) { > The form submitting information to this code has field name like > C_Last_Name1 C_Last_Name2 depending on how many Children > are signing up for something. So I need $y to represent the number. You want this: if (!{$C_Last_Name}{$y}) { The {} surrounding the var

[PHP] Variable Next To Variable?

2001-07-11 Thread Jeff Oien
Sorry if this has been brought up 100 times. I want to do this: $y = "1"; while ($y <= "$Number_Children") { if (!$C_Last_Name$y) { error stuff; $y++; } } The form submitting information to this code has field name like C_Last_Name1 C_Last_Name2

RE: [PHP] Variable variable names...

2001-06-22 Thread Jason Lustig
There's a number of things you can do with variable variables... they're quite powerful, I like 'em a lot. :) Anyway, you can do This would output stuff I think that's what you were asking... You've got to use the { and } around the variables you're using to make teh variable variable.

Re: [PHP] Variable variable names...

2001-06-22 Thread Brian Weisenthal
turns out my subject was right on anyone interested check this page out. http://www.phpbuilder.com/manual/language.variables.variable.php ""Brian Weisenthal"" <[EMAIL PROTECTED]> wrote in message 9h02nm$n7c$[EMAIL PROTECTED]">news:9h02nm$n7c$[EMAIL PROTECTED]... > let say i wanted to see

[PHP] Variable variable names...

2001-06-22 Thread Brian Weisenthal
let say i wanted to see if a variable existed by the name of $myvar2 . how can i make the '2' come from a variable. so i want to say something like $myvar$othervar .(but obviously that wont work) anyone have a clue? i tried using eval but i couldn't get it right -- PHP General Mailing L

Re: [PHP] Variable Passing

2001-05-24 Thread Dan Lowe
Previously, Internaut said: > Thankx for your reply, would you recommend setting the register_globals to > on, would this be safe to do this? It's not any more or less "safe" than using the $HTTP_POST_VARS or $HTTP_GET_VARS arrays instead, but it could be less typing :-) Note that for the arrays

Re: [PHP] Variable Passing

2001-05-22 Thread Internaut
Thankx for your reply, would you recommend setting the register_globals to on, would this be safe to do this? Regards Tosh ""Fai"" <[EMAIL PROTECTED]> wrote in message 9edv0o$2b7$[EMAIL PROTECTED]">news:9edv0o$2b7$[EMAIL PROTECTED]... > Set register_globals = On. But actually, you can use $HTT

Re: [PHP] Variable Passing

2001-05-22 Thread Fai
Set register_globals = On. But actually, you can use $HTTP_*_VARS[] to get the values from the form. * represent: GET, POST or COOKIE > > Please could anyone tell me which part of the ini file I need to modify to > allow me to pass variables from one form to another. > > Regards > Internaut > > >

[PHP] Variable Passing

2001-05-22 Thread Internaut
Hello Please could anyone tell me which part of the ini file I need to modify to allow me to pass variables from one form to another. Regards Internaut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: [PHP] Variable question, yet another

2001-05-09 Thread Gyozo Papp
MAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: 2001. május 8. 21:22 Subject: Re: [PHP] Variable question, yet another > On Tue, May 08, 2001 at 01:20:49PM -0500, King, Justin wrote: > > So when the line hits type 1, it eva

Re: [PHP] Variable question, yet another

2001-05-08 Thread Jason Stechschulte
On Tue, May 08, 2001 at 01:20:49PM -0500, King, Justin wrote: > So when the line hits type 1, it evals like this > > echo "[a href="myscript.php?username={$userdata["username"]}"]Goto > MyScript.php[/a]"; > > Of course this yields an error because of the "'s in the anchor tag. > But if I add s

[PHP] Variable question, yet another

2001-05-08 Thread King, Justin
Alright... here's my situation for those that didn't read my string of messages yesterday.. (plus a bit more background information as to why I'm doing this) I'm writing an engine for a content managing system. Part of the system is a menu builder. I use 2 tables, (this is a mysql database) me

RE: [PHP] Variable Variable

2001-05-07 Thread Altunergil, Oktay
http://www.php.net/manual/en/language.variables.variable.php -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:53 PM To: PHP User Group Subject: [PHP] Variable Variable Hello, I can't find Variable Variable in the php manual. If so

[PHP] Variable Variable

2001-05-07 Thread Brandon Orther
Hello, I can't find Variable Variable in the php manual. If someone has a link to the section in the PHP manual about this please send me a link. Thank you, Brandon Orther -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: [PHP] Variable question

2001-05-07 Thread ..s.c.o.t.t.. [gts]
stin [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 4:29 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Variable question > > > I'm trying to get around having to do that, I don't know regular > expressions so it makes it difficult :( > > -Justin &g

RE: [PHP] Variable question (eval is cool)

2001-05-07 Thread ..s.c.o.t.t.. [gts]
]] > Sent: Monday, May 07, 2001 4:21 PM > To: King, Justin; [EMAIL PROTECTED] > Subject: RE: [PHP] Variable question > > > How about manually parsing the string out to give you chunks, that can then > be eval'd easy. > > - John Vanderbeck > - Admin, GameDesi

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
I'm trying to get around having to do that, I don't know regular expressions so it makes it difficult :( -Justin -Original Message- From: "John Vanderbeck" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 1:21 PM To: King, Justin; [EMAIL PROTECTED] Subject: R

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
I understand that, but that's what I'm trying to get around doing. -Justin -Original Message- From: CC Zona <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 1:24 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable question In article <[EMAIL PROTECTED]>, [E

Re: [PHP] Variable Variable with array

2001-05-07 Thread Gyozo Papp
are you thinking of what this snippet does: $menu = 'menu2'; $i = 2; echo ${$menu}[$i]; - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: 2001. május 7. 22:16 Subject: [PHP] Variabl

Re: [PHP] Variable question

2001-05-07 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("King, Justin") wrote: > A simple eval($mysqldata) isn't going to do it though since the string > is "Your username is $userdata["username"]"; it'll just spit a parse > error. I've already tried that The code being eval'd has to be a valid PH

RE: [PHP] Variable question

2001-05-07 Thread John Vanderbeck
tin [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 4:18 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Variable question > > > A simple eval($mysqldata) isn't going to do it though since the string > is "Your username is $userdata["username"]&qu

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
D]> Sent: Monday, May 07, 2001 1:13 PM To: King, Justin; [EMAIL PROTECTED] Subject: RE: [PHP] Variable question ok, look into eval() -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Variab

[PHP] Variable Variable with array

2001-05-07 Thread Brandon Orther
Hello, I am trying to use variable variable. with arrays. this may be hard to understand so here is an example: $menu1[0] = "1"; $menu1[1] = "2"; $menu1[2] = "3"; $menu2[0] = "1"; $menu2[1] = "2"; $menu2[2] = "3"; $menu3[0] = "1"; $menu3[1] = "2"; $menu3[2] = "3"; does anyone know t

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
ok, look into eval() -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Variable question Here let me flesh this out a bit more Consider the query "SELECT datafield FROM myTable WHERE

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
Here let me flesh this out a bit more Consider the query "SELECT datafield FROM myTable WHERE id=1"; This would return "My username is $userdata["username"]"; I want to then output what the database returns, and have php evaluate my variables. -Justin -- PHP General Mailing List (http://www

RE: [PHP] Variable question

2001-05-07 Thread John Vanderbeck
John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -Original Message- > From: King, Justin [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 3:58 PM > To: [EMAIL PROTECTED] &

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
al Message- From: "Jack Dempsey" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 12:55 PM To: King, Justin; [EMAIL PROTECTED] Subject: RE: [PHP] Variable question you can do it a couple ways... echo "my user name is " . $user_data["username"]; or echo "my u

Re: [PHP] Variable question

2001-05-07 Thread Gyozo Papp
Try this one : $user_data['username'] = 'Alphonse'; $str = "my user name is {$user_data['username']}"; Papp Gyozo - [EMAIL PROTECTED] - Original Message - From: "King, Justin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]&g

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
you can do it a couple ways... echo "my user name is " . $user_data["username"]; or echo "my username is ${user_data["username"]}"; -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 3:49 PM To: [

[PHP] Variable question

2001-05-07 Thread King, Justin
How can I evaluate a variable in a string? For example if I have a string defined as "my user name is $user_data["username"]", how do I echo that string and have php evaluate $user_data["username"]. Thanks in advance.. -Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Gyozo Papp
> > Kirk > > > -Original Message- > > From: Philip Olson [mailto:[EMAIL PROTECTED]] > > Sent: Monday, May 07, 2001 11:45 AM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP] variable functions: empty/isset/unset invalid? > > > > > &g

Re: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Christian Reiniger
On Monday 07 May 2001 20:11, Johnson, Kirk wrote: > problem for empty(). Also, a User Contributed Note at > http://www.php.net/manual/en/functions.php#functions.user-defined has > this to say: > > > there are tons of good uses for this sort of functionality. But it > should be noted that this wi

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Altunergil, Oktay
>>oktay -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 2:43 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] variable functions: empty/isset/unset invalid? Solved. empty, isset and unset are not functions, they are language contructs, which resu

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Philip Olson
Solved. empty, isset and unset are not functions, they are language contructs, which results in the error. This makes sense, a workaround is creating functions like isEmpty (or something similar) and using them. I'll be submitting a future request soon ;) Thanks everyone, especially OpenSrc i

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Johnson, Kirk
ent: Monday, May 07, 2001 11:45 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] variable functions: empty/isset/unset invalid? > > > > I wish it were that easy. Also, I'm looking for words on WHY this > behavior exists. > > http://www.php.net/manual/en/function

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Philip Olson
> > if ($foo{$var}) print 'worked.'; > > Kirk > > > -Original Message- > > From: Philip Olson [mailto:[EMAIL PROTECTED]] > > Subject: [PHP] variable functions: empty/isset/unset invalid? > > > > This does not work as expected (as

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Johnson, Kirk
Change the parens around $var to curly braces: if ($foo{$var}) print 'worked.'; Kirk > -Original Message- > From: Philip Olson [mailto:[EMAIL PROTECTED]] > Subject: [PHP] variable functions: empty/isset/unset invalid? > > This does not work as expected (as

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Altunergil, Oktay
$foo is a string not a PHP function which makes 'empty' a string and not a function/command. Am I missing something? oktay -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:04 PM To: [EMAIL PROTECTED] Subject: [PHP] variable functi

[PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Philip Olson
This does not work as expected (as I expect it at least) and gives the following error. This seems to result with use of empty(), isset(), and unset(), perhaps others : Call to undefined function: empty() When using : $foo = 'empty'; if ($foo($var)) print 'worked.'; Of course the follow

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
-Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 3:27 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable (naming them) Functions. Variable functions? http://localhost/some_script.php?fname=foo prints "this is foo"; http://localhost/some_

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Philip Olson
for point of reference regarding this thread : http://www.php.net/manual/en/functions.variable-functions.php regards, philip On Sat, 28 Apr 2001, Yasuo Ohgaki wrote: > Variable functions? > > foo () { > echo 'this is foo'; > } > > bar () { > echo 'this is bar'; > } > > $var = $HTT

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Yasuo Ohgaki
Variable functions? http://localhost/some_script.php?fname=foo prints "this is foo"; http://localhost/some_script.php?fname=bar print "this is bar" Regards, -- Yasuo Ohgaki "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message DC017B079D81D411998C009027B7112A015ED16A@EXC-TYO-01">news:DC01

RE: [PHP] Variable (naming them) Functions. DONE! DONE! DONE!

2001-04-27 Thread PHPBeginner.com
and Oliver in particular! Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 2:48 AM To: [EMAIL PROTECTED]

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Christian Reiniger
On Friday 27 April 2001 17:08, PHPBeginner.com wrote: > no classes CAN'T solve my problem: > > it is an abstraction layer. called as func_hello(); I want, inside > func_hello() {} declare a new function based on what happened before > func_hello() was called. In other words: I of course though abo

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Johnson, Kirk
001 10:27 AM > To: Johnson, Kirk; 'PHP General List. (E-mail)' > Subject: RE: [PHP] Variable (naming them) Functions. > > > create_function seems not letting you choosing it's name. > > am I right, or there's a way to say: > create_function($name.$t

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
ginner.com -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 1:03 AM To: 'PHP General List. (E-mail)' Subject: RE: [PHP] Variable (naming them) Functions. Did you see create_function()? Not sure if this is what you are after, but http://w

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Johnson, Kirk
Did you see create_function()? Not sure if this is what you are after, but http://www.php.net/manual/en/function.create-function.php Kirk > -Original Message- > From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Variable (naming them) Functions. > >

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread PHPBeginner.com
: SED [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 9:53 PM To: Maxim Maletsky Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Variable (naming them) Functions. Why not use classes? If I understand you problem correctly, I think classes should solve your problem. Right? SED -Original Mess

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread SED
Why not use classes? If I understand you problem correctly, I think classes should solve your problem. Right? SED -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: 27. apríl 2001 11:58 To: 'PHP General List. (E-mail)' Subject: [PHP] Variable (n

[PHP] Variable (naming them) Functions.

2001-04-27 Thread Maxim Maletsky
p. Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Maxim Maletsky Sent: Friday, April 27, 2001 8:58 PM To: 'PHP General List. (E-mail)' Subject: [PHP] Variable (naming them) Functio

[PHP] Variable (naming them) Functions.

2001-04-27 Thread Maxim Maletsky
Hello everyone: I was wondering, does anyone of you know a method to declare a function (give it a name) basing on a value acquired during run time? I tried using the syntax as of a variable function call: $fname = 'hello'; function { sprintf("%s", $fname) }($arg='') { Retu

Re: [PHP] Variable variable

2001-04-18 Thread Plutarck
> The braces aren't required in this case. Yup, your right. I stand corrected. I had forgotten that multiple $s are fine, and that I simply don't use them because I have trouble reading them. The joys of learning ;\ -- Plutarck Should be working on something... ...but forgot what it was. ""

Re: [PHP] Variable variable

2001-04-18 Thread Rasmus Lerdorf
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote: > > > 1. If $id is a number I believe PHP will choke b/c I don't believe > numbers > > > can be used as variable names. > > > > Well, generally that is true. If you try to assign a value directly to a > > variable that is a number such as: > > > > $1

Re: [PHP] Variable variable

2001-04-18 Thread Steve Werby
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote: > > 1. If $id is a number I believe PHP will choke b/c I don't believe numbers > > can be used as variable names. > > Well, generally that is true. If you try to assign a value directly to a > variable that is a number such as: > > $1 = "Hello World";

Re: [PHP] Variable variable

2001-04-18 Thread Rasmus Lerdorf
> 1. If $id is a number I believe PHP will choke b/c I don't believe numbers > can be used as variable names. Well, generally that is true. If you try to assign a value directly to a variable that is a number such as: $1 = "Hello World"; Then it won't work. However, due to a somewhat quirky

Re: [PHP] Variable variable

2001-04-18 Thread Steve Werby
"Plutarck" <[EMAIL PROTECTED]> wrote: > Your problem has little to do with the things mentioned. > > First of all, you are refering to a variable variable incorrectly. Actually, he's not. >You must > use brackets, like this: > > ${$id} The braces aren't required in this case. Of the four examp

Re: [PHP] Variable variable

2001-04-18 Thread Plutarck
Your problem has little to do with the things mentioned. First of all, you are refering to a variable variable incorrectly. You must use brackets, like this: ${$id} If ID has the value "Blue", then the above is the same as: $Blue So in your examble if you had the checkbox with the value "on",

Re: [PHP] Variable variable

2001-04-18 Thread Chris Fry
than reaching the goal you set for > yourself" > - Original Message - > From: Chris Fry <[EMAIL PROTECTED]> > To: Jacky <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, April 18, 2001 2:59 AM > Subject: Re: [PHP] Variable varia

Re: [PHP] Variable variable

2001-04-18 Thread Jacky
- From: Chris Fry <[EMAIL PROTECTED]> To: Jacky <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 18, 2001 2:59 AM Subject: Re: [PHP] Variable variable > Sorry - thought you only had one! - it's late. > > To Name the checkboxes you need: > whil

Re: [PHP] Variable variable

2001-04-18 Thread Chris Fry
; > - Original Message - > From: Chris Fry <[EMAIL PROTECTED]> > To: Jacky <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, April 18, 2001 2:31 AM > Subject: Re: [PHP] Variable variable > > > Jacky, > > > > You do not need

Re: [PHP] Variable variable

2001-04-18 Thread Jacky
OTECTED]> Sent: Wednesday, April 18, 2001 2:31 AM Subject: Re: [PHP] Variable variable > Jacky, > > You do not need the value. The variable $id will either exist (if the user checked it) or not (if the user did not check it). > > Hope this helps. > > Chris > > Jacky wrote:

Re: [PHP] Variable variable

2001-04-18 Thread [EMAIL PROTECTED]
more rewarding than reaching the goal you set for yourself" - Original Message - From: Ulf Wendel <[EMAIL PROTECTED]> To: Jacky <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 18, 2001 2:20 AM Subject: Re: [PHP] Variable variable > > > Ja

Re: [PHP] Variable variable

2001-04-18 Thread Chris Fry
Jacky, You do not need the value. The variable $id will either exist (if the user checked it) or not (if the user did not check it). Hope this helps. Chris Jacky wrote: > Hi all > I have a form with check box and name of those checkboxes is usuing variable lke >this, > > > > > and when I

Re: [PHP] Variable variable

2001-04-17 Thread Ulf Wendel
Jacky schrieb: > > > > and when I submit the form to page foo.php4, at that page, I use Variable variable >to call the value of the check box to see if it checked like this > > $quey = "select id from table"; > $result = .. ( assumeing it is done and i got value for $id for all records

[PHP] Variable variable

2001-04-17 Thread Jacky
Hi all I have a form with check box and name of those checkboxes is usuing variable lke this, and when I submit the form to page foo.php4, at that page, I use Variable variable to call the value of the check box to see if it checked like this $quey = "select id from table"; $result = ..

Re: [PHP] How to I convert the PHP variable back into Javascript?

2001-04-13 Thread Gianluca Baldo
SF> I have not been able to put the php variable back into javascript variable SF> for javascript scripting. I doubt if it would work if I assign the php SF> variable to the html variable then have the javascript pick it up. You don't have "HTML variables"... you h

[PHP] How to I convert the PHP variable back into Javascript?

2001-04-13 Thread Scott Fletcher
When I use the form post or get method and when submitted, goes to the next page. I can get the data in PHP by adding the "$" to the javascript / html variable. I have not been able to put the php variable back into javascript variable for javascript scripting. I doubt if it wou

[PHP] Retrieving W2000 username as a PHP variable.

2001-04-02 Thread Jon
I am using Apache 1.3.19 for Win32 and PHP 4.04 as a module. I would like to retrieve, as a variable, the user name loged in the W2000 domain. Running PHPINFO() function it does not display USERNAME variable so I would like to know if there is other alternative to accomplish this task. Thanks

RE: [PHP] Variable scope problem

2001-03-28 Thread Jason Lotito
> -Original Message- > From: Joe Nelson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 28, 2001 6:17 PM > To: php list > Subject: [PHP] Variable scope problem > > > I have two functions like the ones below. If the first one creates a > variable as global

[PHP] Variable scope problem

2001-03-28 Thread Joe Nelson
I have two functions like the ones below. If the first one creates a variable as global, shouldn't it be accesible to the second function? function setGlobal() { global $test; $test = "123"; } function getGlobal() { global $test; echo $test; } -- PHP General

RE: [PHP] Prob with sending a php variable in an email

2001-03-26 Thread Ankur Verma
ay, March 26, 2001 4:09 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Prob with sending a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code

RE: [PHP] Prob with sending a php variable in an email

2001-03-26 Thread Ankur Verma
OTECTED]' Subject: [PHP] Prob with sending a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk Thanks in adva

RE: [PHP] Prob with sending a php variable in an email

2001-03-26 Thread Rudolf Visagie
din'[EMAIL PROTECTED]'g a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk Thanks in advance! Sonya --

RE: [PHP] Prob with sendin'php-general@lists.php.net'g a php variable in an email

2001-03-26 Thread Rudolf Visagie
din'[EMAIL PROTECTED]'g a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk Thanks in advance! Sonya --

[PHP] Prob with sending a php variable in an email

2001-03-26 Thread Sonya Davey / QDCEL
I have a problem sending a php variable ie $Username in a simple email form, example as follows: Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk Thanks in advance! Sonya -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Variable value doesn't stay "Null"

2001-03-15 Thread NHans
Assuming that column MY_TABLE.MY_NUMERIC_FIELD allows NULLs: INSERT INTO MY_TABLE (MY_NUMERIC_FIELD, MY_OTHER_FIELD) VALUES ('', 'some_other_value') will insert a 0 into the column MY_NUMERIC_FIELD in MySQL and many other databases. To insert NULL, the SQL must read INSERT INTO MY_TABLE (MY_NUME

Re: [PHP] Variable value doesn't stay "Null"

2001-03-15 Thread Web master
all. > > Kirk > >> -Original Message- >> From: Michael Conley [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, March 15, 2001 1:01 PM >> To: 'Chris Lee'; [EMAIL PROTECTED] >> Subject: RE: [PHP] Variable value doesn't stay "Null" >&g

<    3   4   5   6   7   8   9   >