Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Jordi Canals
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 ==

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Robby Russell
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' )

[PHP] Variable Variables adn Superglobals

2004-08-04 Thread 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

Re: [PHP] Variable Variables adn Superglobals

2004-08-04 Thread Justin Patrin
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:

Re: [PHP] Variable Variables adn Superglobals

2004-08-04 Thread ARico
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

Re: [PHP] Variable Variables adn Superglobals

2004-08-04 Thread Curt Zirzow
* 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

Re: [PHP] Variable functions within an object

2004-07-30 Thread 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 $this-{$this-fname}(), does not work either. But if you look at

Re: [PHP] Variable functions within an object

2004-07-30 Thread Curt Zirzow
* 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

Re: [PHP] Variable functions within an object

2004-07-30 Thread Julio Sergio Santana
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

[PHP] Variable functions within an object

2004-07-29 Thread Julio Sergio Santana
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

Re: [PHP] Variable functions within an object

2004-07-29 Thread Curt Zirzow
* 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}(); //

Re: [PHP] Variable functions within an object

2004-07-29 Thread Jason Davidson
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] HTML and PHP output to PHP variable

2004-07-12 Thread Maris
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

Re: [PHP] HTML and PHP output to PHP variable

2004-07-12 Thread Miroslav Hudak (php/ml)
? //.. 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

Re: [PHP] HTML and PHP output to PHP variable

2004-07-12 Thread Maris
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

Re: [PHP] variable question

2004-06-20 Thread Daniel Clark
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

[PHP] variable question

2004-06-19 Thread water_foul
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

Re: [PHP] variable question

2004-06-19 Thread Robin Vickery
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,

Re: [PHP] variable question

2004-06-19 Thread water_foul
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

Re: [PHP] Keep PHP variable values between script calls - XML RPC

2004-05-29 Thread Santiago Peirano
://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

[PHP] Keep PHP variable values between script calls - XML RPC

2004-05-27 Thread Santiago Peirano
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

Re: [PHP] Keep PHP variable values between script calls - XML RPC

2004-05-27 Thread Matt Matijevich
[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,

RE: [PHP] Keep PHP variable values between script calls - XML RPC

2004-05-27 Thread Jay Blanchard
[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

Re: [PHP] Keep PHP variable values between script calls - XML RPC

2004-05-27 Thread Santiago Peirano
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

[PHP] Re: Keep PHP variable values between script calls - XML RPC

2004-05-27 Thread Jason Barnett
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

Re: [PHP] Keep PHP variable values between script calls - XML RPC

2004-05-27 Thread Jason Barnett
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:

RE: [PHP] Keep PHP variable values between script calls - XML RPC

2004-05-27 Thread Lance Lovette
[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

[PHP] variable passing using URL

2004-05-14 Thread gowthaman ramasamy
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

Re: [PHP] variable passing using URL

2004-05-14 Thread Steve Douville
: [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

[PHP] R: [PHP] variable passing using URL

2004-05-14 Thread Alessandro Vitale
[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

[PHP] _$ variable

2004-05-13 Thread ken
Please somebody tell me what _$ (start from underscore) variable means. I'm trying to find it from PHP.NET, but I cannot find that.

RE: [PHP] _$ variable

2004-05-13 Thread Chris
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

Re: [PHP] _$ variable

2004-05-13 Thread John W. Holmes
[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/

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Aric Caley
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:

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Tom Rogers
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

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Jason Barnett
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

Re[2]: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Tom Rogers
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

Re: [PHP] variable-length arguments passed by reference... how?

2004-04-29 Thread Curt Zirzow
* 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

[PHP] extracting data from XML file to PHP variable ..

2004-03-31 Thread Kenn Murrah
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

[PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Jason Barnett
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,

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Kenn Murrah
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

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Jason Barnett
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

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Justin Patrin
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

Re: [PHP] Re: extracting data from XML file to PHP variable ..

2004-03-31 Thread Jason Barnett
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

[PHP] variable passing

2004-03-12 Thread Martin S
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;

Re: [PHP] variable passing

2004-03-12 Thread Jason Davidson
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

[PHP] variable container?

2004-01-26 Thread Jake McHenry
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

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
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

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Freedomware
(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

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
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

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Freedomware
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,

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
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

[PHP] Variable PHP Includes - Is there such a thing?

2004-01-14 Thread Freedomware
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

[PHP] Variable variables

2003-12-23 Thread Richard Baskett
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 :(

Re: [PHP] Variable variables

2003-12-23 Thread John W. Holmes
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

Re: [PHP] Variable variables

2003-12-23 Thread Richard Baskett
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';

RE: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Jay Blanchard
[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

Re: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Al Costanzo
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

Re: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Jon Bennett
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

Re: [PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-12-01 Thread Chris Shiflett
--- 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

[PHP] Variable in $_FILES?

2003-12-01 Thread Dimitri Marshall
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,

Re: [PHP] Variable in $_FILES?

2003-12-01 Thread Kelly Hallman
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?

[PHP] Question on sending PhP variable results to an HTML page to be displayed.

2003-11-28 Thread Al Costanzo
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

Re: [PHP] Variable

2003-11-27 Thread Adam i Agnieszka Gasiorowski FNORD
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

[PHP] Variable

2003-11-26 Thread Jorge Infante Osorio.
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

Re: [PHP] Variable

2003-11-26 Thread Rasmus Lerdorf
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,

[PHP] variable in e-mail

2003-10-17 Thread christian tischler
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

Re: [PHP] variable in e-mail

2003-10-17 Thread Marek Kilimajer
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

Re: [PHP] variable in e-mail

2003-10-17 Thread David Otton
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

[PHP] php variable

2003-10-13 Thread Onno Kuipers
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:

RE: [PHP] php variable

2003-10-13 Thread Jay Blanchard
[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

Re: [PHP] php variable

2003-10-13 Thread Marek Kilimajer
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

Re: [PHP] php variable

2003-10-13 Thread 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 doesn't work. Maybe you mean something totaly

Re: [PHP] php variable

2003-10-13 Thread Comex
[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

Re: [PHP] php variable

2003-10-13 Thread Scott Fletcher
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

Re: [PHP] php variable

2003-10-13 Thread Scott Fletcher
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...

Re[2]: [PHP] php variable

2003-10-13 Thread Tom Rogers
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

[PHP] Variable Nightmare

2003-10-08 Thread richard cook
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

Re: [PHP] Variable Nightmare

2003-10-08 Thread Ryan Thompson
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

Re: [PHP] Variable Nightmare

2003-10-08 Thread Larry_Li
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

Re: [PHP] Variable Nightmare

2003-10-08 Thread Evan Nemerson
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

[PHP] using a php variable in javascript

2003-09-22 Thread Rich Fox
: 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

Re: [PHP] using a php variable in javascript

2003-09-22 Thread Erwin Kerk
(); 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

RE: [PHP] Problem with HTML Text box and PHP variable.

2003-09-12 Thread Ford, Mike [LSS]
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

RE: [PHP] Problem with HTML Text box and PHP variable.

2003-09-12 Thread Ford, Mike [LSS]
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

RE: [PHP] Problem with HTML Text box and PHP variable.

2003-09-12 Thread Jay Blanchard
[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,

[PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Golawala, Moiz M (IndSys, GE Interlogix)
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

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Robert Cummings
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

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Chris Sherwood
: 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

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread murugesan
] 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

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread CPT John W. Holmes
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:

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Jim Lucas
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

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread John W. Holmes
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

RE: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Vail, Warren
: 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

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread John W. Holmes
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

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Brad Pauly
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

[PHP] Variable Overloading or Replacement (long)

2003-09-10 Thread Jay Blanchard
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,

Re: [PHP] Variable Overloading or Replacement (long)

2003-09-10 Thread Raditha Dissanayake
Hello, my comments are below this snippet. class AGENT{ /* ** 2003-09-04 jb PRIVATE PROPERTIES */ var $strCommCode; // agent commission code

Re: [PHP] variable in function parameter

2003-07-29 Thread 386-DX
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]

[PHP] variable in function parameter

2003-07-28 Thread 386-DX
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?

<    1   2   3   4   5   6   7   8   9   >