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 ==
On Tue, 2004-08-10 at 17:41, Jordi Canals wrote:
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' )
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
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:
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
* 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
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 at
* 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't exist, so
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:
?php
function foo() {
echo In foo()br /\n;
}
class a {
var
I need to record the names of functions, and then use them later.
Recently I found the following example within the on-line documentation:
?php
function foo() {
echo In foo()br /\n;
}
$func = 'foo';
$func();// This calls foo()
?
then I supposed that it was easy to extend this concept to
* 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}();
//
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:
?php
PHP variable?
It is also important that it is done from the same index.php file.
Thanks,
Maris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
? //.. some other php code that generates output... ?
..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 index.php file.
Thanks,
Maris
--
PHP General Mailing List (http://www.php.net
generated output put in one PHP
variable?
It is also important that it is done from the same index.php file.
Thanks,
Maris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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 you $lie1,
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=2
and i want
$lie2
://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 an XML-RPC
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 dont know where to start
(none of the search in internet gave me a starting
[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,
[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
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
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
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:
[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
keeps the value of certain variables between
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
: [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 two
frames in it (left frame and Right frame). But I
[mailto:[EMAIL PROTECTED]
Inviato: venerdì 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
Please somebody tell me what _$ (start from underscore) variable means.
I'm trying to find it from PHP.NET, but I cannot find that.
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: [PHP
[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/
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:
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
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 string
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
* 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
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 have
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 works,
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
no
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
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
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
I have this in equip-lend-index.php and want to pass the variable
$equipment back to the same page:
PRINT td valign=\top\Equipment: form
action=\$USERPREFIX/equip-lend-index.php\ method=\POST\
enctype=\text/plain\;
PRINT input type=\radio\ name=\equipment\ value=\computer\ /
Computers;
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:
PRINTtd valign=\top\Equipment: form
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 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:
?php
include (../../../../includes/header.php);
?
But you later decide you'd like to change just one
(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}
?php
/*State name does not have to be set statically,
can be set from SQL query
etc*/
I
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}
?php
/*State name does not have to be set statically,
can be set from SQL query
etc*/
I think I
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 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
making PHP
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:
?php
include (../../../../includes/header.php);
?
But you later decide you'd like to change just one element on each page.
For example, you might design a
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
:(
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
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';
[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
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: [PHP] Question on sending PhP variable
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: [PHP] Question on sending PhP variable results to an HTML
page
to be displayed.
[snip]
If you use the date function
--- 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 .php
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,
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?
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 cantn, inside the while structure I calculate the value of
this variable several times until I keep with the value
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
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,
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
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
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!
Reduce
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:
html
body
?php
$var=¨How are you¨;
?
form method=post action=scripttwo.php
table
tr
td style=vertical-align:
[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
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:
html
body
?php
$var=¨How are you¨;
?
form method=post
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
input type=hidden name=var2
value=¨?php print $var2; ?¨
but it doesn't work. Maybe you mean something totaly
[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
input type=hidden name=var2
value=¨?php print $var2; ?¨
but it
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]
Pleace $var in a hidden
Page 1
input type=hidden name=var2 value=test
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...
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 input type=hidden name=var2
OK
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
input name=value?php
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 form
Yes. PHP supports this feature you need.
for loop $i
{
$temp=value.$i;
$myNewVar = $$temp;
}
Hope it help.
Ryan Thompson [EMAIL PROTECTED]
10/09/2003 01:38 PM
To: richard cook [EMAIL PROTECTED],
[EMAIL PROTECTED]
cc:
Subject:Re: [PHP
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
:
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 the documentation and trial-and-error have
not met with success.
thanks,
Rich
();
window.close();
// --
/script
/body
/html
I have 'CompanyEdit' 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
On 11 September 2003 19:56, CPT John W. Holmes wrote:
From: murugesan [EMAIL PROTECTED]
This will help you
?php
$dins=Dinesh;
echo input type=text name=dins class='textbox' value='$dins' ;
Use double quotes for HTML attributes.
Why? Both the HTML 4.01 and XHTML 1.0 (via
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
?php
$dins=Dinesh;
echo input type=text name=dins class='textbox' value='$dins'
;
Use double
[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 (although,
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 tdinput type=text name=value.$j.$i. size=20 value=.$myString./td;
However if the value of $myString is Hello 1 then the line above will
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
: Golawala, Moiz M (IndSys, GE Interlogix) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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
] 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 tdinput type=text name=value.$j.$i. size=20
value=.$myString./td;
However if the value of $myString
From: murugesan [EMAIL PROTECTED]
This will help you
?php
$dins=Dinesh;
echo input type=text name=dins class='textbox' value='$dins' ;
?
Use double quotes for HTML attributes.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Text box and PHP variable.
From: murugesan [EMAIL PROTECTED]
This will help you
?php
$dins=Dinesh;
echo input type=text name=dins class='textbox' value='$dins' ;
?
Use double quotes for HTML attributes.
---John Holmes...
--
PHP General Mailing List (http://www.php.net
Jim Lucas wrote:
?php
$dins=Dinesh;
echo input type=text name=dins class='textbox' value='$dins' ;
?
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
: 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:
?php
$dins=Dinesh;
echo input type=text
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
On Thu, 2003-09-11 at 18:02, John W. Holmes wrote:
Jim Lucas wrote:
?php
$dins=Dinesh;
echo input type=text name=dins class='textbox' value='$dins' ;
?
Use double quotes for HTML attributes.
Why do you say that?
Yeah, I figured someone would ask that. :) I couldn't find
First let me say that I have done quite a bit of reading this morning
and have been employing OOP techniques for several years in other
languages and I have found something that seems strange to me (given the
early hour, lots of things seem strange). If I have a property declared
in a class,
Hello,
my comments are below this snippet.
class AGENT{
/*
** 2003-09-04 jb PRIVATE PROPERTIES
*/
var $strCommCode; // agent commission code
Yes.
I simplified the example for clearance but what I really want is to send a
string as a parameter which includes variable names to be processed inside
the function. eval() works fine, but I'm sure there was another way.
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello. Let's say I have something like this:
function aa($test) {
$a = 8;
echo $test;
}
$a = 2;
aa(a is . ($a5?greater:equal to or less). than 5.);
I want this to output a is greater than 5.. how can i modify the code so
that the function parameter is evaluated inside the function?
301 - 400 of 817 matches
Mail list logo