Harlequin wrote:
I have the following:
[SNIP]
...
$Emp_Status_Rqmt=$row["Emp_Status_Rqmt"];
}
if( $Emp_Status_Rqmt == 'Permanent' )
{
$UserStatus = 'Permanent';
}
if( $Emp_Status_Rqmt == 'Contractor' )
{
$UserStatus = 'Contractor';
}
else
{
$UserStatus == 'Flexib
On Tue, 2004-08-10 at 16:36, Harlequin wrote:
> I have the following:
>
> [SNIP]
> ...
> $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"];
>}
>if( $Emp_Status_Rqmt == 'Permanent' )
>{
>$UserStatus = 'Permanent';
>}
>if( $Emp_Status_Rqmt == 'Contractor' )
>{
>$UserStatus = '
Hey,
I was looking at your code and should that not be an If - ElseIf - Else
structure? The way I read this is it first checks to see if the var is set
to 'Permanent' and sets $UserStatus. Then regardless of the previous test it
does another test on the $Emp_Status_Rqmt to see if it is 'Contactor'
On Wed, 11 Aug 2004 00:36:05 +0100, Harlequin
<[EMAIL PROTECTED]> wrote:
> I have the following:
>
> [SNIP]
>
> $Emp_Status_Rqmt=$row["Emp_Status_Rqmt"];
>}
>if( $Emp_Status_Rqmt == 'Permanent' )
>{
>$UserStatus = 'Permanent';
>}
>if( $Emp_Status_Rqmt == 'Contractor' )
I have the following:
[SNIP]
...
$Emp_Status_Rqmt=$row["Emp_Status_Rqmt"];
}
if( $Emp_Status_Rqmt == 'Permanent' )
{
$UserStatus = 'Permanent';
}
if( $Emp_Status_Rqmt == 'Contractor' )
{
$UserStatus = 'Contractor';
}
else
{
$UserStatus == 'Flexible';
}
[SNIP]
* Thus wrote ARico:
>Using Variable Variables works fine inside functions for global
> defined variables if you declare them as global inside the function.
> Suprinsingly, it does not seem to work with superglobals. Take the
> following example:
>
> // code /
Justin Patrin wrote:
On Wed, 04 Aug 2004 23:15:03 +0200, ARico <[EMAIL PROTECTED]> wrote:
Using Variable Variables works fine inside functions for global
defined variables if you declare them as global inside the function.
Suprinsingly, it does not seem to work with superglobals. Take the
fol
On Wed, 04 Aug 2004 23:15:03 +0200, ARico <[EMAIL PROTECTED]> wrote:
> Using Variable Variables works fine inside functions for global
> defined variables if you declare them as global inside the function.
> Suprinsingly, it does not seem to work with superglobals. Take the
> following example:
Using Variable Variables works fine inside functions for global
defined variables if you declare them as global inside the function.
Suprinsingly, it does not seem to work with superglobals. Take the
following example:
// code
$va
Curt Zirzow wrote:
or for the oneline purists :)
${ ${$this->fname} = $this->fname }();
wow.. ${} is more powerful than i had originally though.
Thank you Curt,
With your suggestion, I finally re-wrote the example, and here it is:
function foo() {
echo "In foo()\n";
}
class a {
var $fname;
* Thus wrote Julio Sergio Santana:
>
> Curt Zirzow wrote:
>
> > $this->{$this->fname}();
> >
> > or (what it actually is doing.. )
> >
> > $func = $this->fname;
> > $this->$func();
> >
> >Curt
>
> The point here is that the named function is outside the object. That
> is, $this->foo() doesn
Curt Zirzow wrote:
$this->{$this->fname}();
or (what it actually is doing.. )
$func = $this->fname;
$this->$func();
Curt
The point here is that the named function is outside the object. That
is, $this->foo() doesn't exist, so $this->{$this->fname}(), does not
work either.
But if you look
http://ca3.php.net/manual/en/function.call-user-func.php ?
Jason
On Thu, 29 Jul 2004 17:11:50 -0500, Julio Sergio Santana
<[EMAIL PROTECTED]> wrote:
> I need to record the names of functions, and then use them later.
> Recently I found the following example within the on-line documentation:
>
* Thus wrote Julio Sergio Santana:
>
> class a {
> var $fname;
> function a() {
> $this->fname = 'foo'; // the name of the function
> }
>
> function execute() { // method to execute the named function
> $this->fname();
> // I also tried here
> // {$this->fname}();
> //
I need to record the names of functions, and then use them later.
Recently I found the following example within the on-line documentation:
\n";
}
$func = 'foo';
$func();// This calls foo()
?>
then I supposed that it was easy to extend this concept to objects and
wrote the following case:
ob_end_clean();
> ?>
>
> regards,
> m.
>
> Maris wrote:
>
> > Hi!
> >
> > Let's say my index.php consists of the following:
> >
> > PHP says Hello World"; ?>
> > HTML says Hello World
> >
> > ..some other HMTL out
hello!
use output buffering...
regards,
m.
Maris wrote:
Hi!
Let's say my index.php consists of the following:
PHP says Hello World"; ?>
HTML says Hello World
..some other HMTL output..
My question is:
how can I make the whole index.php generated output put in one PHP variabl
Hi!
Let's say my index.php consists of the following:
PHP says Hello World"; ?>
HTML says Hello World
..some other HMTL output..
My question is:
how can I make the whole index.php generated output put in one PHP variable?
It is also important that it is done from the same i
How about:
eval( '$lie' . x ) ;
>>is there a way to use one variable to create another?
>>Example
>>$poo=1
>>and i want
>>$lie1
>>OR
>>$poo=2
>>and i want
>>$lie2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks oh so much
"Robin Vickery" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sat, 19 Jun 2004 14:25:27 -0600, water_foul
> <[EMAIL PROTECTED]> wrote:
> >
> > is there a way to use one variable to create another?
> > Example
> > $poo=1
> > and i want
> > $lie1
> > OR
> > $poo=
On Sat, 19 Jun 2004 14:25:27 -0600, water_foul
<[EMAIL PROTECTED]> wrote:
>
> is there a way to use one variable to create another?
> Example
> $poo=1
> and i want
> $lie1
> OR
> $poo=2
> and i want
> $lie2
If I understand you right, you want:
${'lie' . $poo}
when $poo is 1, that will give yo
is there a way to use one variable to create another?
Example
$poo=1
and i want
$lie1
OR
$poo=2
and i want
$lie2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.3.x.
http://pwee.sourceforge.net/
Lance
-Original Message-
From: Santiago Peirano [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Keep PHP variable values between script calls - XML RPC
Ok, here we go.
I would like to implement
Santiago Peirano [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 27, 2004 11:17 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Keep PHP variable values between script calls - XML RPC
>
> Ok, here we go.
> I would like to implement an XML-RPC server (a script of course) that
>
If you're trying to prevent hitting the database then just cache the
page result and store it as a temporary html file. Then serve the
temporary file whenever people visit (and update every 15 minutes).
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
Sounds like a pretty run-of-the-mill storage issue; or did you want to
save XML messages? In any case, storing the information in a session is
probably the easiest and most straightforward way to do this. Or store
the information in a database.
Jason
--
PHP General Mailing List (http://www.ph
Jay Blanchard wrote:
[snip]
Ok, here we go.
I would like to implement an XML-RPC server (a script of course) that
keeps the value of certain variables between the different invocations
of the script.
I think that it should be possible, but I don't know where to start
(none of the search in inte
[snip]
Ok, here we go.
I would like to implement an XML-RPC server (a script of course) that
keeps the value of certain variables between the different invocations
of the script.
I think that it should be possible, but I don't know where to start
(none of the search in internet gave me a starti
[snip]
I would like to implement an XML-RPC server (a script of course) that
keeps the value of certain variables between the different invocations
of the script.
[/snip]
Could you store them in a file? Maybe a database.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Ok, here we go.
I would like to implement an XML-RPC server (a script of course) that
keeps the value of certain variables between the different invocations
of the script.
I think that it should be possible, but I don’t know where to start
(none of the search in internet gave me a starting poin
14 maggio 2004 8.24
A: [EMAIL PROTECTED]
Oggetto: [PHP] variable passing using URL
hello list,
I have a problem in passing variables using URLs.
I have a link from a PHP 'Page One' and passing some variables thru
URL.
This link should now open another page (main frame) which will have
Capture the variables you've sent to the main frame page and send them via
the url of the frames.
Hope that helps.
- Original Message -
From: "gowthaman ramasamy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 14, 2004 2:24 AM
Subject: [PHP]
hello list,
I have a problem in passing variables using URLs.
I have a link from a PHP 'Page One' and passing some variables thru
URL.
This link should now open another page (main frame) which will have two
frames in it (left frame and Right frame). But I want the variables to
be passed on to the
[EMAIL PROTECTED] wrote:
> Please somebody tell me what _$ (start from underscore) variable means.
> I'm trying to find it from PHP.NET, but I cannot find that.
http://us2.php.net/manual/en/function.gettext.php
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|
That is, as far as I know, invalid syntax. Maybe it's being confused with
the predefined Super Global variables like $_GET , $_POST, and $_SERVER ?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 5:30 PM
To: [EMAIL PROTECTED]
Subject:
Please somebody tell me what _$ (start from underscore) variable means.
I'm trying to find it from PHP.NET, but I cannot find that.
* Thus wrote Tom Rogers ([EMAIL PROTECTED]):
> Hi,
>
> Friday, April 30, 2004, 3:51:19 AM, you wrote:
>
>
> JB> I know I'm probably paranoid, but eval() always bugs me. I think for
> JB> what you want to do you can use call_user_func_array()
>
> JB> $args = func_get_args();
> JB> call_user_fun
Hi,
Friday, April 30, 2004, 3:51:19 AM, you wrote:
JB> I know I'm probably paranoid, but eval() always bugs me. I think for
JB> what you want to do you can use call_user_func_array()
JB> $args = func_get_args();
JB> call_user_func_array('function_to_call', $args);
JB> http://www.php.net/manua
A bit like this
$num_args = func_num_args();
$arg_list = func_get_args();
$vars = 'function_to_call(';
for ($i = 0; $i < $num_args; $i++) {
$vars .= ($i > 0)? ',':'';
$varname = 'variable'.$i;
$$varname =& $arg_list[$i];
$vars .= "\$$varname";
}
$vars .= ');';
//that leaves you with a stri
Hi,
Friday, April 30, 2004, 1:40:26 AM, you wrote:
AC> I want to create a function similar to the MySqli extensions'
AC> mysqli_stmt_bind_param() function. I assume that this function takes
AC> its arguments passed by reference. Now, I know how to do variable
AC> length argument lists in a func
Marek Kilimajer wrote:
But workaround would be to call your function with array():
Thanks, I was afraid that might be the only way. I guess its possible
if you write an extension (like mysqli) in C?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
Hmmm, that looks interesting.
On another note, I've made a simple parse based on PEAR's XML_Parser
that parses an entire XML tree into associative arrays. Feel free to use
it.
http://www.reversefold.com/~papercrane/XML_Parser_Assoc/Assoc.phps
I haven't used that class before, or else I probabl
Jason Barnett wrote:
Kenn Murrah wrote:
Jason:
Yes, I am aware of the problem. However, for the very simple XML
files that I'm being asked to process, it's not an issue -- each file
has, for example, one and only one occurrence of "fullname" So,
while I realize that any solution I achie
Kenn Murrah wrote:
Jason:
Yes, I am aware of the problem. However, for the very simple XML files
that I'm being asked to process, it's not an issue -- each file has, for
example, one and only one occurrence of "fullname" So, while I
realize that any solution I achieve for this project wi
Jason:
Yes, I am aware of the problem. However, for the very simple XML files
that I'm being asked to process, it's not an issue -- each file has, for
example, one and only one occurrence of "fullname" So, while I
realize that any solution I achieve for this project will have virtually
n
Kenn Murrah wrote:
Greetings.
I've been RTFM all morning and for the live of me can't figure out how
to relate the element name to its data, e.g. if the element name is
"fullname" and the data is "John Doe' how do I achieve $fullname =
"John Doe" I must not be understanding how xml_parse wor
Greetings.
I've been RTFM all morning and for the live of me can't figure out how
to relate the element name to its data, e.g. if the element name is
"fullname" and the data is "John Doe' how do I achieve $fullname =
"John Doe" I must not be understanding how xml_parse works, and
my searches
what is the code your using to try and retrieve the var.. are you using
$_REQUEST['equipment'];
jason
Martin S <[EMAIL PROTECTED]> wrote:
>
> I have this in equip-lend-index.php and want to pass the variable
> $equipment back to the same page:
>
> PRINT " Equipment: action=\"$USERPREFIX/
I have this in equip-lend-index.php and want to pass the variable
$equipment back to the same page:
PRINT " Equipment: ";
PRINT "
Computers";
PRINT " Phones";
PRINT " ";
PRINT " ";
Hitting Select (submit button) doesn't pass the value of $equipment back
to the page. What am I doing wrong?
/
Is there some global variable container that I can print_r out to show me all the
variables that are being used on a page? In my efforts of converting from globals over
to sessions, I've been getting a little mis organized with my code, and would like to
know of all variables that are in use on
On 15 Jan 2004 at 0:21, Freedomware wrote:
> Rory McKinley wrote:
> >
> > I hope this has clarified matters somewhat and not made things worse.
> >
>
> Absolutely; the only thing that has made matters worse so far is the
> book "Teach Yourself PHP, MySQL and Apache," which had me thinking
> m
Rory McKinley wrote:
I hope this has clarified matters somewhat and not made things worse.
Absolutely; the only thing that has made matters worse so far is the
book "Teach Yourself PHP, MySQL and Apache," which had me thinking
making PHP includes was going to be a minor wrestling match. In fact,
On 14 Jan 2004 at 23:16, David Blomstrom wrote:
> --- Rory McKinley <[EMAIL PROTECTED]> wrote:
>
> > A possible option could be something like this
> >
> > {calling_template.php}
> >
> > > /*State name does not have to be set statically,
> > can be set from SQL query
> > etc*/
>
> I t
(Oops - I replied by e-mail; guess I should have posted my response to
the list.)
--- Rory McKinley <[EMAIL PROTECTED]> wrote:
> A possible option could be something like this
>
> {calling_template.php}
>
> /*State name does not have to be set statically,
> can be set from SQL query
> etc*
On 14 Jan 2004 at 21:16, Freedomware wrote:
> Suppose you design a standard banner for the top of your web pages and
> use an include to insert it into every page on your site, like this:
>
> include ("../../../../includes/header.php");
> ?>
>
> But you later decide you'd like to change just o
Suppose you design a standard banner for the top of your web pages and
use an include to insert it into every page on your site, like this:
But you later decide you'd like to change just one element on each page.
For example, you might design a standard image banner, followed by a
title and su
on 12/23/03 11:04, John W. Holmes at [EMAIL PROTECTED] wrote:
> Richard Baskett wrote:
>> Ok I am trying to create a variable from the value of a variable plus some
>> extra text tagged on the end of it.
>>
>> So for example:
>>
>> $test = '_over';
>> $$CONFIG['island'].$test = 'testing';
>
> $
Richard Baskett wrote:
Ok I am trying to create a variable from the value of a variable plus some
extra text tagged on the end of it.
So for example:
$test = '_over';
$$CONFIG['island'].$test = 'testing';
${$CONFIG['island'].$test} = 'testing';
echo "hawaii = $hawaii_over";
Why not just use an ar
Ok I am trying to create a variable from the value of a variable plus some
extra text tagged on the end of it.
So for example:
$test = '_over';
$$CONFIG['island'].$test = 'testing';
echo "hawaii = $hawaii_over";
How can I do this? Im sure it's possible, but it just is not working for me
:(
Than
On Mon, 1 Dec 2003, Dimitri Marshall wrote:
> This is what I'm trying to do:
> $pic = $_FILES['object$objectNumber'];
> $picName = $pic['name'];
> ...
> $objectNumber is being defined, but for some reason this code won't work.
> Can someone tell me why and also what I can do to make it work?
$_FIL
Hi there,
This is what I'm trying to do:
$pic = $_FILES['object$objectNumber'];
$picName = $pic['name'];
$pictmp = $pic['tmp_name'];
$objectNumber is being defined, but for some reason this code won't work.
Can someone tell me why and also what I can do to make it work?
Thanks in advance,
Dimitr
--- Al Costanzo <[EMAIL PROTECTED]> wrote:
> This will not work because the page in question ends in .HTML but I
> did discover a way to do what I need and an answer to many other
> posts.
>
> Here is the answer:
>
> To make a PHP command to execute on a .html page create another page
> ending in
o" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 8:49 AM
Subject: RE: [PHP] Question on sending PhP variable results to an HTML
page
to be displayed.
[snip]
If you use the date function in PhP you can get the date and it will
not
change in the cac
engines, but when it comes to php...
well ... thanks for the help!
Al Costanzo
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Al Costanzo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 8:49 AM
Subject: RE:
[snip]
If you use the date function in PhP you can get the date and it will not
change in the cache since the actual code is not on the page that
generated
it.
My question is how do I get the answer that I have in a PHP variable
back to
an HTML page and give it lets say to JavaScript to display
can get the date and it will not
change in the cache since the actual code is not on the page that generated
it.
My question is how do I get the answer that I have in a PHP variable back to
an HTML page and give it lets say to JavaScript to display.
Thanks for any help on this.
Al
--
PHP
"Jorge Infante Osorio." wrote:
> I determinate the value of a variable in the botton of one page, and I want to use
> it in the middle of the page, inside
> a while structure, but I cant´n, inside the while structure I calculate the value of
> this variable several times until I keep with the
I couldn't parse this question. How about posting a code snippet?
On Thu, 27 Nov 2003, Jorge Infante Osorio. wrote:
> Hi every one.
> I am new in this List.
>
> My problem is:
>
> I determinate the value of a variable in the botton of one page, and I want to use
> it in the middle of the page
Hi every one.
I am new in this List.
My problem is:
I determinate the value of a variable in the botton of one page, and I want to use
it in the middle of the page, inside
a while structure, but I cant´n, inside the while structure I calculate the value of
this variable several times until I
On Fri, 17 Oct 2003 14:51:54 +0100, you wrote:
>I would like to use a form in a html page to pass the variables to a php
>page, which sends an mail including these variables.
>
>All I get in the mail though is a 1 rather than the string that I put into
>the form???
>
>Can anyone help please!
Redu
Post some code.
christian tischler wrote:
I would like to use a form in a html page to pass the variables to a php
page, which sends an mail including these variables.
All I get in the mail though is a 1 rather than the string that I put into
the form???
Can anyone help please!
--
PHP General Ma
I would like to use a form in a html page to pass the variables to a php
page, which sends an mail including these variables.
All I get in the mail though is a 1 rather than the string that I put into
the form???
Can anyone help please!
--
PHP General Mailing List (http://www.php.net/)
To unsub
Hi,
Tuesday, October 14, 2003, 12:42:18 AM, you wrote:
OK> Jay Blanchard wrote:
>> [snip]
>> $var=¨How are you¨;
>> THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO.
>> [/snip]
>>
>> Pleace $var in a hidden form element.
OK> I tried... something like this
OK> value=¨¨>
OK> but it does
Page 1
Page 2
echo $_REQUEST['var2'];
//or
echo $_POST['var2'];
//==
//Sometime noticed some glitch with $_POST because sometime PHP think the
data go to $_GET...
//So, to prevent future headache, I use $_REQUEST['var2'] at all time...
//==
Scott
"Comex" <[EMAIL PROTECTED]>
Should also work if you use the POST method...
"Comex" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> <[EMAIL PROTECTED]>
> Onno Kuipers:
> > Jay Blanchard wrote:
> >> [snip]
> >> $var=¨How are you¨;
> >> THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO.
> >> [/snip]
> >>
>
<[EMAIL PROTECTED]>
Onno Kuipers:
> Jay Blanchard wrote:
>> [snip]
>> $var=¨How are you¨;
>> THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO.
>> [/snip]
>>
>> Pleace $var in a hidden form element.
>
> I tried... something like this
>
> value=¨¨>
>
> but it doesn't work. Maybe you mean som
Jay Blanchard wrote:
[snip]
$var=¨How are you¨;
THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO.
[/snip]
Pleace $var in a hidden form element.
I tried... something like this
¨>
but it doesn't work. Maybe you mean something totaly different, can you
show me what you mean.
--
PHP General
Read about sessions in the manual.
Onno Kuipers wrote:
Hello,
If i set a variabele in lets say 'script one'. When i jump into 'script
two', is there a way (without cookies) to read the variable set in
'script one'
Like: SCRIPTONE.PHP:
$var=¨How are you¨;
?>
name:
SCR
[snip]
$var=¨How are you¨;
THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO.
[/snip]
Pleace $var in a hidden form element.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
If i set a variabele in lets say 'script one'. When i jump into 'script
two', is there a way (without cookies) to read the variable set in
'script one'
Like: SCRIPTONE.PHP:
$var=¨How are you¨;
?>
name:
SCRIPTTWO.PHP:
THE PROBLEM IS THAT I ALSO WANT TO USE
Okay I think this is what you want. If you want $myNewVarX too you should be
able to figure it out.
Check out php.net/manual/en/language.variables.variable.php
for loop blah
$myNewVar = ${'value'.$x};
Also, you may want to consider just naming every field "value[]", which
results in $_
cc:
Subject:Re: [PHP] Variable Nightmare
The server probably has global variables turn off
Try $_GET['value1'], $_GET['value2']
If you using post method then replace $_GET with $_POST
On Thursday 09 October 2003 00:51, richard cook wrote:
> Hi all,
>
The server probably has global variables turn off
Try $_GET['value1'], $_GET['value2']
If you using post method then replace $_GET with $_POST
On Thursday 09 October 2003 00:51, richard cook wrote:
> Hi all,
> I have a problem that I cant solve, any help would be welcomed!
>
>
> I have a fo
Hi all,
I have a problem that I cant solve, any help would be welcomed!
I have a form which is repeated by a for loop, the form has one element an
input field. The problem im having is the name of this field for example ive
used the following to name it:
for loop here
}
So the input name
27; hardcoded, but what I want instead is something like:
so = window.open('','$callerWin');
This does not work, of course, but you get the idea: I want to use the value
of the $callerWin php variable in my javascript. Can someone tell me the
syntax for this? My reading of th
');
This does not work, of course, but you get the idea: I want to use the value
of the $callerWin php variable in my javascript. Can someone tell me the
syntax for this? My reading of the documentation and trial-and-error have
not met with success.
thanks,
Rich
--
PHP General Mailin
[snip]
>>Use double quotes for HTML attributes.
>
> Why do you say that?
Yeah, I figured someone would ask that. :) I couldn't find anything
definitive on w3c.org; can someone back me up?
AFAIK, they are required in XML and XHTML. It's a good habit to get into
with regular HTML, also (althoug
On 12 September 2003 11:50, Ford, Mike [LSS] wrote:
> On 11 September 2003 19:56, CPT John W. Holmes wrote:
>
> > From: "murugesan" <[EMAIL PROTECTED]>
> >
> >
> > > This will help you
> > >
> > > > > $dins="Dinesh";
> > > echo " > > >";
> > > >
> >
> > Use double quotes for HTML attribu
On 11 September 2003 19:56, CPT John W. Holmes wrote:
> From: "murugesan" <[EMAIL PROTECTED]>
>
>
> > This will help you
> >
> > > $dins="Dinesh";
> > echo "";
> > >
>
> Use double quotes for HTML attributes.
Why? Both the HTML 4.01 and XHTML 1.0 (via XML 1.0) specifications explicitly a
On Thu, 2003-09-11 at 18:02, John W. Holmes wrote:
> Jim Lucas wrote:
>
> >>> >>> $dins="Dinesh";
> >>> echo "";
> >>>?>
> >>
> >>Use double quotes for HTML attributes.
> >
> > Why do you say that?
>
> Yeah, I figured someone would ask that. :) I couldn't find anything
> definitive on w3c
Vail, Warren wrote:
Question: will the substitution for the variable $dins occur if surrounded by single quotes?
I could be mixing languages here, but I seem to recall a rule in one language about substituting variable contents only occurring between double quotes.
In PHP, no, variables will no
: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 5:03 PM
To: Jim Lucas
Cc: murugesan; Golawala, Moiz M (IndSys, GE Interlogix);
[EMAIL PROTECTED]
Subject: Re: [PHP] Problem with HTML Text box and PHP variable.
Jim Lucas wrote:
>>>>> $dins=&quo
Jim Lucas wrote:
> $dins="Dinesh";
>>> echo "";
>>>?>
>>
>>Use double quotes for HTML attributes.
>
Why do you say that?
Yeah, I figured someone would ask that. :) I couldn't find anything
definitive on w3c.org; can someone back me up?
AFAIK, they are required in XML and XHTML. It's a good h
hursday, September 11, 2003 11:56 AM
Subject: Re: [PHP] Problem with HTML Text box and PHP variable.
> From: "murugesan" <[EMAIL PROTECTED]>
>
>
> > This will help you
> >
> > > $dins="Dinesh";
> > echo "";
> > ?>
>
From: "murugesan" <[EMAIL PROTECTED]>
> This will help you
>
> $dins="Dinesh";
> echo "";
> ?>
Use double quotes for HTML attributes.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This will help you
";
?>
-Murugesan
- Original Message -
From: "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 10:35 PM
Subject: [PHP] Problem with HTML Text box and PHP variable
;
Sent: Thursday, September 11, 2003 10:05 AM
Subject: [PHP] Problem with HTML Text box and PHP variable.
I am having a problem with rendering PHP variables in an HTML text box. If
the value of $myString is "Hello" the line below will render it correctly
echo "";
However i
Proper HTML attribute values are surrounded by double quotes. Otherwise
in sloppy mode, the HTML parser sees the pace between Hello and 1 and
things a new attribute by the name of 1 has been encountered.
Cheers,
Rob.
On Thu, 2003-09-11 at 13:05, Golawala, Moiz M (IndSys, GE Interlogix)
wrote:
> I
I am having a problem with rendering PHP variables in an HTML text box. If the value
of $myString is "Hello" the line below will render it correctly
echo "";
However if the value of $myString is "Hello 1" then the line above will populate the
text box with only "Hello" and it will loose the "1"
Hello,
my comments are below this snippet.
class AGENT{
/*
** 2003-09-04 jb PRIVATE PROPERTIES
*/
var $strCommCode; // agent commission code
--
301 - 400 of 854 matches
Mail list logo