> -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
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.
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
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.
$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
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
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]
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
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
> 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
> 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
> -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.
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
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
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
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?
>
>
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
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
; $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
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
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
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;
> $
--) {
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
> 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
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
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.
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
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
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
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
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
>
>
>
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
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
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
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
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
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
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
]]
> 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
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
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
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
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
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
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
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
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
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
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]
&
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
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
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: [
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,
>
> 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
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
>>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
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
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
>
> 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
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
$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
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
-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_
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
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
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]
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
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
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
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.
>
>
: 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
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
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
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
> 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.
""
> "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
"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";
> 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
"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
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",
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
-
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
;
> - 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
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:
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
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
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
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 = ..
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
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
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
> -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
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
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
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
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
--
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
--
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
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
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
701 - 800 of 854 matches
Mail list logo