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 == 'Flexib

Re: [PHP] Variable just not Behaving Itself.

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

RE: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Kevin
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'

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Justin Patrin
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' )

[PHP] Variable just not Behaving Itself.

2004-08-10 Thread Harlequin
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]

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 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 fol

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:

[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 $va

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: function foo() { echo "In foo()\n"; } class a { var $fname;

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

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

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: >

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}(); > //

[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: \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:

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

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

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

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

[PHP] HTML and PHP output to PHP variable

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

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

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=

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 yo

[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] Keep PHP variable values between script calls - XML RPC

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

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

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

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: http://www.ph

[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 (http://www.ph

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 inte

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 starti

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, visit

[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 don’t know where to start (none of the search in internet gave me a starting poin

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

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

Re: [PHP] variable passing using URL

2004-05-13 Thread Steve Douville
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]

[PHP] variable passing using URL

2004-05-13 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 the

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/ php|

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] _$ 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-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> call_user_fun

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> http://www.php.net/manua

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 stri

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 func

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: http://www.php.net/uns

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 probabl

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 achie

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 wi

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 n

[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 wor

[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

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: > > PRINT " Equipment: action=\"$USERPREFIX/

[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 " 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? /

[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 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

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 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

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} > > /*State name does not have to be set statically, > can be set from SQL query > etc*

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: > > include ("../../../../includes/header.php"); > ?> > > But you later decide you'd like to change just o

[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: 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

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] 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 ar

[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 :( Than

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? $_FIL

[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, Dimitr

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

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

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

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:

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

[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 cant´n, inside the while structure I calculate the value of > this variable several times until I keep with the

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

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 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! Redu

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 Ma

[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 unsub

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> value=¨¨> OK> but it does

Re: [PHP] php variable

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

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] > >> >

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 > > value=¨¨> > > but it doesn't work. Maybe you mean som

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 ¨> but it doesn't work. Maybe you mean something totaly different, can you show me what you mean. -- PHP General

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: $var=¨How are you¨; ?> name: SCR

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

[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: $var=¨How are you¨; ?> name: SCRIPTTWO.PHP: THE PROBLEM IS THAT I ALSO WANT TO USE

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 $_

Re: [PHP] Variable Nightmare

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

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 fo

[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 } So the input name

Re: [PHP] using a php variable in javascript

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

[PHP] using a php variable in javascript

2003-09-22 Thread Rich Fox
'); 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

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 (althoug

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 > > > > > > > > $dins="Dinesh"; > > > echo " > > >"; > > > > > > > > Use double quotes for HTML attribu

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 > > > > > $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

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: > > >>> >>> $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

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 no

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: >>>>> $dins=&quo

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

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

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

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

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 > > $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

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

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

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

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

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

[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 ""; 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"

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 --

<    1   2   3   4   5   6   7   8   9   >