Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Greg Watson
Thank you for that answer! That worked perfectly! That leads me to another query, again, which I have searched for... I'd like to be able to switch Register_Globals ON, but I can't find my php.ini file. Running phpinfo(); tells me that my 'php.ini' file is stored in C:\WINDOWS, but it's not th

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread CPT John W. Holmes
From: "Greg Watson" <[EMAIL PROTECTED]> > doesn't look as > though variables are being passed from page to page. Register_globals is OFF in your php.ini file, so you need to use $_GET['testvar'] instead of $testvar. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Variables not passed on localhost setup

2003-10-01 Thread Greg Watson
Hi Guys, I've Googled and RTFM'd, but I can't seem to figure this out - it may not even be a php problem but I'm not sure. I've set up Apache, PHP and MySQL on my laptop running XP Home. Although I've coded php for a while now, I had never set these up on my own computer before. The php seems to b

Re: [PHP] variables, passing again to another.

2003-09-25 Thread Jason Wong
On Thursday 25 September 2003 15:46, Louie Miranda wrote: > if ($psi_shipping_addtnl_info != '') { > echo '<< NO USER INPUT >>'; > } > > Im catching a _POST variable from a form, now i wonder im filtering it out > to pass again to another variable is this possible? *assign* to another variable //

[PHP] variables, passing again to another.

2003-09-25 Thread Louie Miranda
if ($psi_shipping_addtnl_info != '') { echo '<< NO USER INPUT >>'; } Im catching a _POST variable from a form, now i wonder im filtering it out to pass again to another variable is this possible? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Variables changes their values

2003-06-04 Thread Marek Kilimajer
Cut&paste the code, also file include/surveysavereply.inc. Svein Larsen wrote: On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote: On Tuesday 03 June 2003 13:58, Jay Blanchard wrote: [snip] We would have to see some code Jay I'm not able to reproduce this in a short code-snippet. But fr

Re: [PHP] Variables changes their values

2003-06-04 Thread Jason Wong
> Yep, its a bad paste :) The script is error-free... > But there is no code that change the variable and it still get changed. > Eg. it change from 75497 to 6894 In order of increasing probability: - you can attribute it to black magic - you've hit upon a php bug - there's something wrong wi

Re: [PHP] Variables changes their values

2003-06-04 Thread Svein Larsen
On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote: > > On Tuesday 03 June 2003 13:58, Jay Blanchard wrote: > > > [snip] > > > We would have to see some code > > > > > > Jay > > > > I'm not able to reproduce this in a short code-snippet. > > But from the first echo to the last echo $lid ch

Re: [PHP] Variables changes their values

2003-06-04 Thread Svein Larsen
Thats the strange thing... there IS NO CODE that change the value... And the cut/paste is bad... there is no parse errors and the code snip is only a small part of a scriptfile. - Svein On Tuesday 03 June 2003 15:33, Jay Blanchard wrote: > [snip] > I'm not able to reproduce this in a short code-

RE: [PHP] Variables changes their values

2003-06-03 Thread Jay Blanchard
[snip] I'm not able to reproduce this in a short code-snippet. But from the first echo to the last echo $lid change its value: if ($hostid==31) echo "lid1: $lid"; # Paragraphs [/snip] $lid is getting set the first time before the IF statement. From this IF to the last $lid in what yo

Re: [PHP] Variables changes their values

2003-06-03 Thread CPT John W. Holmes
> On Tuesday 03 June 2003 13:58, Jay Blanchard wrote: > > [snip] > > We would have to see some code > > > > Jay > > I'm not able to reproduce this in a short code-snippet. > But from the first echo to the last echo $lid change its value: Either this is a bad cut and paste job or this script wi

Re: [PHP] Variables changes their values

2003-06-03 Thread Svein Larsen
On Tuesday 03 June 2003 13:58, Jay Blanchard wrote: > [snip] > We would have to see some code > > Jay I'm not able to reproduce this in a short code-snippet. But from the first echo to the last echo $lid change its value: if ($hostid==31) echo "lid1: $lid"; # Paragraphs #

Re: [PHP] Variables changes their values

2003-06-03 Thread CPT John W. Holmes
> I'm getting strange behavior in some of my scripts > I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the > problem. The problem is that variables changes its values from one line og > code to another - without specific code that should change the value. > Do anybody else had t

RE: [PHP] Variables changes their values

2003-06-03 Thread Jay Blanchard
[snip] I'm getting strange behavior in some of my scripts I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the problem. The problem is that variables changes its values from one line og code to another - without specific code that should change the value. Do anybody else had this

[PHP] Variables changes their values

2003-06-03 Thread Svein Larsen
I'm getting strange behavior in some of my scripts I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the problem. The problem is that variables changes its values from one line og code to another - without specific code that should change the value. Do anybody else had this proble

Re: [PHP] Re: Biding Arrays from Oracle Stored Procedure to PHP Variables

2003-05-30 Thread Lang Sharpe
I don't know of a way to get more detail on which bind variables are missing. You could try putting OCIInternalDebug(1); in you script. Normally when i get this error it's usually a typo in my code. Lang Gregory Watson wrote: > Thanks Lang - from the notes you sent me I'm able to bind arrays

Re: [PHP] Variables not being past

2003-05-30 Thread Philip Olson
ng and suddenly with I redefined the php environment, > the php variables are not getting passed on. > > why? > > -- > Member - Liberal InternationalOn 11 Sept 2001 the WORLD was violated. > This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] > Society MUST be saved

[PHP] Variables not being past

2003-05-30 Thread The Doctor
Questions, I have a cusotmer using a basic username and password verifier on a php Web Page. This was working and suddenly with I redefined the php environment, the php variables are not getting passed on. why? -- Member - Liberal International On 11 Sept 2001 the WORLD was violated. This

Re: [PHP] Re: Biding Arrays from Oracle Stored Procedure to PHP Variables

2003-05-30 Thread Gregory Watson
Thanks Lang - from the notes you sent me I'm able to bind arrays successfully using a complex select, but using the procedure still gives me an error: Warning: OCIStmtExecute: ORA-01008: not all variables bound in C:\ftp_dir\boards\winners.php on line 20 Warning: OCIFetch: ORA-24374: de

RE: [PHP] Variables don't pass... *sniff*

2003-05-30 Thread Wendell Brown
On Thu, 29 May 2003 07:21:01 -0700 (Pacific Standard Time), Rasmus Lerdorf wrote: >It isn't a pointer. It is a reference which you should think of as a >symbol table alias. A pointer, at least by my definition, is a memory >address. In PHP it isn't a memory address, just another entry in the >s

RE: [PHP] Variables don't pass... *sniff*

2003-05-30 Thread Ford, Mike [LSS]
> -Original Message- > From: Wendell Brown [mailto:[EMAIL PROTECTED] > Sent: 29 May 2003 15:18 > > On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS] > wrote: > > >Well, how about references, then? (And me, personally, I'd > use isset() > >rather than is_array().) > > >

RE: [PHP] Variables don't pass... *sniff*

2003-05-30 Thread Rasmus Lerdorf
On Thu, 29 May 2003, Wendell Brown wrote: > On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS] > wrote: > > >Well, how about references, then? (And me, personally, I'd use isset() > >rather than is_array().) > > > > if (isset($_POST)): > > $POST = &$_POST; > > else: > >

RE: [PHP] Variables don't pass... *sniff*

2003-05-30 Thread Wendell Brown
On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS] wrote: >Well, how about references, then? (And me, personally, I'd use isset() >rather than is_array().) > > if (isset($_POST)): > $POST = &$_POST; > else: > $POST = &$HTTP_POST_VARS; > endif; I was told that PHP

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Wendell Brown [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 15:02 > > On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote: > > >I would've thought that $HTTP_*_VARS will be deprecated > sometime in the > >future. It might be an idea to write your own acce

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: David Grant [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 12:47 > To: Leif K-Brooks > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Variables don't pass... *sniff* > > > Leif K-Brooks wrote: > > > To

[PHP] Re: Biding Arrays from Oracle Stored Procedure to PHP Variables

2003-05-29 Thread Lang Sharpe
Have a look at this paper, in particular the collections section at the end http://www.phpconference.de/2001/slides/arntzen_ocipaper.txt I've never used them myself, because they look a bit dodgy. But it may be the only way to do what you're trying to do. Lang Gregory Watson wrote: > Hi guys.

[PHP] Biding Arrays from Oracle Stored Procedure to PHP Variables

2003-05-29 Thread Gregory Watson
Hi guys... I'm very new to using Oracle and stored procedures. I'm using a stored procedure to return 12 variables, 8 of which are arrays. $EventID = 41403; $BufferSize = 3000; $connection_oracle = OCILogon("","**", "**"); $statement_oracle = OCIParse($connection_oracle

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Evan Nemerson
Deprecated means that it has fallen out of favor, and is _in_the_process_of_being_phased_out_ You should not rely on this code in new applications. Go look it up in a dictionary. If you have to be backward compatible with < 4.1.0 (which was released on 10-Dec-2001!) I suggest something like this:

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Joe Stump
ndell Brown [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 7:43 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Variables don't pass... *sniff* On Wed, 28 May 2003 16:30:17 +0200, [EMAIL PROTECTED] wrote: >Howcome? I don't think I understand that... Ch

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread daniel
] ; [EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 4:42 PM Subject: Re: [PHP] Variables don't pass... *sniff* On Wed, 28 May 2003 16:30:17 +0200, [EMAIL PROTECTED] wrote: >Howcome? I don't think I understand that... Check this out. http://us4.php.net/registerglobals -- PHP Gen

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread David Grant
Wendell Brown wrote: Egads! Wouldn't the following be a little simpler? At the top of the file put. if( is_array($_POST) ) $pArray = $_POST; else $pArray = $HTTP_POST_VARS; Absolutely! I've been getting a little carried away with moving a lot of PHP functions to OO classes recently...

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Wendell Brown
On Wed, 28 May 2003 16:30:17 +0200, [EMAIL PROTECTED] wrote: >Howcome? I don't think I understand that... Check this out. http://us4.php.net/registerglobals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Jay Blanchard
[snip] Yup! You could even add that php to the auto_prepend_file variable in your php.ini or add this to your .htaccess file (assuming you are running Apache and have overwrite turned on) and the prepend will happen automagically on every php program: php_value auto_prepend_file "/www/extract_p

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread daniel
> However, both of these "solutions" create the same security issue that > turning RegisterGlobals on took care of in the first place. :) Howcome? I don't think I understand that... Is the security issue not with the fact that you're POSTing og GETing variables rather than the way you do it? Woul

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Wendell Brown
On Wed, 28 May 2003 16:13:22 +0200, [EMAIL PROTECTED] wrote: >if (!empty($_POST)) { > extract($_POST); >} else { > extract($HTTP_POST_VARS); >} > >And have it in an include file, "extract_post.php". >This way I can just include it and all variables are available, just like if >register_globals had

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread daniel
From: Wendell Brown To: [EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 4:01 PM Subject: Re: [PHP] Variables don't pass... *sniff* On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote: >I would've thought that $HTTP_*_VARS will be deprecated sometime in the >future. It migh

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Wendell Brown
On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote: >I would've thought that $HTTP_*_VARS will be deprecated sometime in the >future. It might be an idea to write your own accessor methods, e.g. > >function RetrieveGetParameter($parameterValue) Egads! Wouldn't the following be a little simp

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread David Grant
Leif K-Brooks wrote: To maintain absolute compatibility, just use $HTTP_GET_VARS. It's availalable in all PHP versions, just deprectaed in versions here $_GET is available. I would've thought that $HTTP_*_VARS will be deprecated sometime in the future. It might be an idea to write your own ac

RE: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Sichta Daniel
Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 1:47 PM To: Leif K-Brooks; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Variables don't pass... *sniff* [snip] To maintain absolute compatibility, just use $HTTP_GET_VARS. It's availalable in all PHP vers

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
e 10 kinds of people - those who know binary and those who don't" - Original Message - From: Leif K-Brooks To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 1:35 PM Subject: Re: [PHP] Variables don't pass... *sniff* To maintain absolute compatibil

RE: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Jay Blanchard
[snip] To maintain absolute compatibility, just use $HTTP_GET_VARS. It's availalable in all PHP versions, just deprectaed in versions here $_GET is available. [/snip] Just to be perfectly clear on this. Let's say that I am writing an application that I am going to release to the public (for fre

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Leif K-Brooks
ne? Again, thanks for the help =) Daniel - Original Message - From: Petre Agenbag To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 12:02 PM Subject: Re: [PHP] Variables don't pass... *sniff* Sorry, I missunderstood your question about backwards co

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
02 PM Subject: Re: [PHP] Variables don't pass... *sniff* Sorry, I missunderstood your question about backwards compatible. YES, accessing your variables this way ($_POST[] etc), IS backwards compatibel, ie, they are placed in those arrays anyways, BUT, the method is not backwards com

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Petre Agenbag
Maybe they could include a quick "overview" of the latest changes as well as a link to the on-line manual in your "sign-up" message when joining the list? On Wed, 2003-05-28 at 11:46, Chris Hayes wrote: > Could someone with power over php.net please try to make this change in > variable handling

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Petre Agenbag
s what you wanted? (Not sure I want to, but just to know) > > Again, thank you! =) > > Daniel > > > - Original Message - > From: Petre Agenbag > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Sent: Wednesday, May 28, 2003 11:40 AM > Subject: Re: [PHP] Variables do

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Petre Agenbag
. > $var1 = $_GET[var1]; > $var2 = $_GET[var2]; > ...if that's what you wanted? (Not sure I want to, but just to know) > > Again, thank you! =) > > Daniel > > > - Original Message - > From: Petre Agenbag > To: [EMAIL

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
ECTED] Sent: Wednesday, May 28, 2003 11:46 AM Subject: Re: [PHP] Variables don't pass... *sniff* Could someone with power over php.net please try to make this change in variable handling very extremely clear for downloaders? Make it something you cannot miss? Not everybody reads release

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
Sent: Wednesday, May 28, 2003 11:40 AM Subject: Re: [PHP] Variables don't pass... *sniff* RegisterGlobals = Off You need to access these variables by $_POST[aVariable] or in your case ( adding the variables to the end of a URL means you are using the GET method: $_GET[aVAriable] etc. On Wed,

RE: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread PHPSpooky
lto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 3:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Variables don't pass... *sniff* Hi all! I'm using Apache 2.0.45, PHP 4.3.2RC4, and MySQL 3.23.49 on Windows 2003 Server Standard. I have a problem passing variables between pages. They simply get l

RE: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Jonathan Wilkes
not being funny ... but, you should read release notes, that's what they are for regards Jonathan -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: 28 May 2003 10:46 To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables don't pass... *sniff* Could someone

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Chris Hayes
Could someone with power over php.net please try to make this change in variable handling very extremely clear for downloaders? Make it something you cannot miss? Not everybody reads release notes and readme.txt files. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Petre Agenbag
RegisterGlobals = Off You need to access these variables by $_POST[aVariable] or in your case ( adding the variables to the end of a URL means you are using the GET method: $_GET[aVAriable] etc. On Wed, 2003-05-28 at 11:37, [EMAIL PROTECTED] wrote: > Hi all! > > I'm using Apache 2.0.45, PHP 4.

[PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
Hi all! I'm using Apache 2.0.45, PHP 4.3.2RC4, and MySQL 3.23.49 on Windows 2003 Server Standard. I have a problem passing variables between pages. They simply get lost. Neither GET nor POST pass values, and even "hardcoding" them into the URL, like htpp://localhost/comeon.php?aVariable=ding&an

Re: [PHP] variables??

2003-03-27 Thread Alexander Weber
and how you're using it. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 8:15 PM To: [EMAIL PROTECTED] Cc: [EM

RE: [PHP] variables??

2003-03-25 Thread John W. Holmes
Sent: Tuesday, March 25, 2003 8:15 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] variables?? No, it is more secure.  The problem with register_globals is that ALL variables become global - not just the ones you want to be.  Example: if(something) $authorized = true; if($authori

Re: [PHP] variables??

2003-03-25 Thread Leif K-Brooks
No, it is more secure. The problem with register_globals is that ALL variables become global - not just the ones you want to be. Example: if(something) $authorized = true; if($authorized){ ...do something requiring security... } A hacker could easily go to script.php?authorized=1, and gain acce

RE: [PHP] variables??

2003-03-25 Thread John W. Holmes
> It is considered more secure to declare the variable explicitly. > > $var = $_GET["var"]; Ummm... that's the same result as having register_globals on (basically). You're not helping anything and it's certainly not any more "secure". ---John W. Holmes... PHP Architect - A monthly magazine for

Re: [PHP] variables??

2003-03-25 Thread Dave O'Meara
It is considered more secure to declare the variable explicitly. $var = $_GET["var"]; > > I'm having a problem with form data being recognized by a php script. > > If I send information with a GET the variable data appears in $GET[var] > > but not $var. > -- PHP General Mailing List (http://

Re: [PHP] variables??

2003-03-25 Thread Kevin Stone
- Original Message - From: "Rick Gaine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 1:25 PM Subject: [PHP] variables?? > > I'm having a problem with form data being recognized by a php script. > If I send information wit

[PHP] variables??

2003-03-25 Thread Rick Gaine
I'm having a problem with form data being recognized by a php script. If I send information with a GET the variable data appears in $GET[var] but not $var. I just upgraded to php4.2.2 and then 4.3.1 and I've been having this problem. I didn't have the problem with older versions. I suspect it i

AW: [PHP] variables with ""

2003-03-17 Thread Frederic . Hahn
Either you use simple quotes for the code ---> ' or you escape the " by using > \" > $mail->Body = "Heading hth -- {Bis bald ° Frederic} -This is a block of text that can be added to your posts. 72 characters. -- PHP General Mailing List (http://www.php.

[PHP] variables with ""

2003-03-17 Thread Ian A. Gray
Hi, just a quick question. How do I include double quotes in a variable? I am trying to put html code in a variable in a mailing program: $mail->Body = "Heading Please e-mail me at mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]" I know that you d

[PHP] Variables / Memory Allocation

2003-03-04 Thread Adam Voigt
Ok, first, is there any difference in respect to memory or CPU speed between defining a variable with define() and addressing it without a $, and simply using $var = "whatever". Second, putting good programming practices aside, what is the cost in CPU speed for unsetting a variable after

[PHP] Variables VS constantes

2003-02-28 Thread Cranky
Hello, I would like to know if in a config file for example, if it was better to use variables or constantes ? Is it a big difference of performance or in memory used ? And the same question about the translation of a site. I would like to translate my site in many langages. So I want to create on

RE: [PHP] Variables not being received from form

2003-02-23 Thread John W. Holmes
magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Peter Gumbrell [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 23, 2003 7:42 PM > To: Php-General > Subject: [PHP] Variables not being received from form > > Tha

[PHP] Variables not being received from form

2003-02-23 Thread Peter Gumbrell
Thanks to those who have helped me with my two other questions this afternoon. In the function below, the update query at the end is inserting empty values into the database. For some reason the lines: $rank = $HTTP_POST_VARS['rank']; $title_new = $HTTP_POST_VARS['titles']; re not picking up the f

Re: [PHP] Variables from the Form wouldn't transfer to my process page

2003-02-16 Thread Geckodeep
Hi Jason Man you are great, well indeed I stumbled on my stupidity by putting the hidden name instead of making it unique I've rectified it. The reason for passing this variable to the next page is the cats table is only needed in the first form and the name of the cat is just printed on the foll

Re: [PHP] Variables from the Form wouldn't transfer to my process page

2003-02-15 Thread Jason Wong
On Sunday 16 February 2003 09:21, Geckodeep wrote: > My html looks ok. Are you sure? > The TEXT variable is $catname and the $rubriqueid is a mistake it is > actually $catid but it is not that giving the problem. It is an error from > my part when I posted it. How are you passing $catname onto

Re: [PHP] Variables from the Form wouldn't transfer to my process page

2003-02-15 Thread Geckodeep
hi Jason The TEXT variable is $catname and the $rubriqueid is a mistake it is actually $catid but it is not that giving the problem. It is an error from my part when I posted it. My html looks ok. I should tell you though that this page is on the admin section which is under a login session scrip

Re: [PHP] Variables from the Form wouldn't transfer to my process page

2003-02-15 Thread Jason Wong
On Sunday 16 February 2003 03:37, Geckodeep wrote: > I have these forms with one having pull down menu having data coming from a > table which is working and I have set two variables one for ID and the > other for the TEXT. > The problem that I am facing is that when the form is submitted the ID >

[PHP] Variables from the Form wouldn't transfer to my process page

2003-02-15 Thread Geckodeep
I have these forms with one having pull down menu having data coming from a table which is working and I have set two variables one for ID and the other for the TEXT. The problem that I am facing is that when the form is submitted the ID variable is well taken into consideration and can see the val

RE: [PHP] how can I use an external 'template' file and still use PHP variables? [solved]

2003-01-10 Thread Daevid Vincent
- > -Original Message- > From: Benjamin Niemann [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 2:02 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] how can I use an external 'template' file > and still use PHP variables? > > >

Re: [PHP] how can I use an external 'template' file and still use PHP variables?

2003-01-10 Thread Maxim Maletsky
Check out Smarty: http://smarty.php.net it does exactly what you need. -- Maxim Maletsky [EMAIL PROTECTED] "Daevid Vincent" <[EMAIL PROTECTED]> wrote... : > I've posted this a few weeks ago with no response. I want to use an > external > "email template" as it were, so that the sales guys

[PHP] Re: how can I use an external 'template' file and still use PHP variables?

2003-01-10 Thread Noel Wade
I agree with Edwin on this one. What's the <<< for?? Could it be you want to be doing this: $templatestring = include("/pathto/email_template.php"); $message = "<<" tags will be considered plain text. Put another way: Even though the "include" statement in the main document is ALREADY between

Re: [PHP] how can I use an external 'template' file and still use PHP variables?

2003-01-10 Thread - Edwin
"Daevid Vincent" <[EMAIL PROTECTED]> wrote: > I've posted this a few weeks ago with no response. I want to use an > external > "email template" as it were, so that the sales guys can edit it as they > like and simply shuffle the variables around that they need > $username and $password (either wit

Re: [PHP] how can I use an external 'template' file and still use PHP variables?

2003-01-10 Thread Benjamin Niemann
Subject: [PHP] how can I use an external 'template' file and still use PHP variables? > I've posted this a few weeks ago with no response. I want to use an > external > "email template" as it were, so that the sales guys can edit it as they > like and simply

[PHP] how can I use an external 'template' file and still use PHP variables?

2003-01-10 Thread Daevid Vincent
I've posted this a few weeks ago with no response. I want to use an external "email template" as it were, so that the sales guys can edit it as they like and simply shuffle the variables around that they need $username and $password (either with or without the tags). I don't want them mucking aro

Re: [PHP] Variables

2003-01-08 Thread Justin French
on 09/01/03 11:52 AM, Stephen ([EMAIL PROTECTED]) wrote: > Yet another question: How would you make a variable's name the value of > another variable? For example... Variable 1's value is "joe." I want to make > the value of variabe one, or joe, the name of variable two which would equal > somethi

RE: [PHP] Variables

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
AM To: PHP List Subject: [PHP] Variables Yet another question: How would you make a variable's name the value of another variable? For example... Variable 1's value is "joe." I want to make the value of variabe one, or joe, the name of variable two which would equal som

[PHP] Variables

2003-01-08 Thread Stephen
Yet another question: How would you make a variable's name the value of another variable? For example... Variable 1's value is "joe." I want to make the value of variabe one, or joe, the name of variable two which would equal something else. Thanks,Stephen Cratonhttp://www.melchior.us   "What

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread David Chamberlin
turned on in php.ini. You can either set the value = on or access posted values by using $_POST or $HTTP_POST_VARS depending on your version of php. - Original Message - From: "David Chamberlin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Kevin Stone
Woops.. sorry I missed the crux of your post. I didn't read all the way down. :) -Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "David Chamberlin" <[EMAIL PROTECTED]> Sent: Friday, January 03, 200

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Kevin Stone
e. -Kevin - Original Message - From: "David Chamberlin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 12:58 PM Subject: [PHP] Variables that persist through reload? > Hey, > > I'm somewhat new to PHP and I'm doing a lot

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Joseph W. Goff
lt;[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 1:58 PM Subject: [PHP] Variables that persist through reload? > Hey, > > I'm somewhat new to PHP and I'm doing a lot of forms stuff. Looking at > some of the examples at: > > http://www.linuxguruz.org/z.php?id=33

[PHP] Variables that persist through reload?

2003-01-03 Thread David Chamberlin
Hey, I'm somewhat new to PHP and I'm doing a lot of forms stuff. Looking at some of the examples at: http://www.linuxguruz.org/z.php?id=33 The variables seem to persist through a reload. For example, the first demo has: if (!isset($pick)) { echo "Fill out and submit the form below.";

RE: [PHP] include "problem" -- how to use an external 'template' file and still use PHP variables?

2002-12-30 Thread Daevid Vincent
I have a similar question/problem. However, I want to use an external "email template" as it were, so that the sales guys can edit it as they like and simply shuffle the three variables around that they need $username, $password, $code (either with or without the tags). I don't want them mucking

Re: [PHP] Forms and PHP variables

2002-12-22 Thread Philip Olson
CTED]> > Cc: "PHP General" <[EMAIL PROTECTED]> > Sent: Saturday, December 21, 2002 9:50 PM > Subject: Re: [PHP] Forms and PHP variables > > > > > > Use is_numeric() > > > > http://www.php.net/is_numeric > > > > See also the ctyp

Re: [PHP] Forms and PHP variables

2002-12-22 Thread Jason Wong
On Sunday 22 December 2002 10:29, Beauford.2002 wrote: > Hi, > > First off, thanks to all those that helped out with my other questions. Not > all my problems were solved, but I'm certainly closer. Still working on the > same project I need to do the following. > > I have a form where users input n

Re: [PHP] Forms and PHP variables

2002-12-21 Thread Beauford.2002
Olson" <[EMAIL PROTECTED]> To: "Beauford.2002" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Saturday, December 21, 2002 9:50 PM Subject: Re: [PHP] Forms and PHP variables > > Use is_numeric() > > http://www.php.net/is_numeri

Re: [PHP] Forms and PHP variables

2002-12-21 Thread Philip Olson
Use is_numeric() http://www.php.net/is_numeric See also the ctype functions which can be read about here: http://www.php.net/ctype And yes, regular expressions are another option but aren't needed here. Regards, Philip Olson On Sat, 21 Dec 2002, Beauford.2002 wrote: > Hi, > > First of

[PHP] Forms and PHP variables

2002-12-21 Thread Beauford.2002
Hi, First off, thanks to all those that helped out with my other questions. Not all my problems were solved, but I'm certainly closer. Still working on the same project I need to do the following. I have a form where users input numbers only, is there a way I can have php check to make sure a let

Re: [PHP] Variables - Help

2002-12-16 Thread Kevin Stone
ecember 17, 2002 1:29 PM Subject: [PHP] Variables - Help > Hi, > > I have a webpage where users input information. This gets sent to a PHP page > to use this input. The first time the user inputs information it works > correctly, but the second, third, forth, etc. times does not. I

[PHP] Variables - Help

2002-12-16 Thread Beauford.2002
Hi, I have a webpage where users input information. This gets sent to a PHP page to use this input. The first time the user inputs information it works correctly, but the second, third, forth, etc. times does not. It appears the information from the first time is still stored in the variables I am

Re: [PHP] Variables problem

2002-12-09 Thread Andrew Brampton
"Marco" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 9:30 AM Subject: [PHP] Variables problem > Hi All, > > I'm a newbie and try to learn a little php, so a searched the internet for > documentation and wow...find a real

Re: [PHP] Variables problem

2002-12-09 Thread Stephen
If you have globals on, then I see your problem. Rename $totalqty to something else - Original Message - From: "Marco" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 4:30 AM Subject: [PHP] Variables problem > Hi All, > >

[PHP] Variables problem

2002-12-09 Thread Marco
Hi All, I'm a newbie and try to learn a little php, so a searched the internet for documentation and wow...find a real course. Fanatic I typed the code below and ..yes the first part of my form works fine: My first orderform...looks cool, works fine Orderform.html **

Re: [PHP] Variables and http

2002-12-05 Thread Timothy Hitchens (HiTCHO)
Are you saying this is coming from a form entry? If so and you have PHP > 4.1 then use: $_GET['chp1'] OR $_POST['chp1'] Depends if it is get or post data!! If you have pre 4.1 use the var name eg. $chp1 etc etc Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] If you need PHP hosting with an exp

[PHP] Variables and http

2002-12-05 Thread hacook
Hi all, I have a page (to create a database) with X text fields called chpX (chp0, chp1, chp2..Etc) that posts these variables to a php file. I would like to know how can i get these values ? (I have also the $i variable that tells me what is the max X) Thanks, Hacook -- PHP General Mailing Li

Re: [PHP] Questions on PHP Variables

2002-11-10 Thread Rasmus Lerdorf
Uh, no. Your problem is obvious: $sql = "SELECT * FROM users WHERE username='$_SERVER["PHP_AUTH_USER"]' and password='$_SERVER["PHP_AUTH_PW"]'"; You have double-quotes inside a double-quoted string. Like I said, don't use quotes around the array index inside

Re: [PHP] Questions on PHP Variables

2002-11-10 Thread Ernest E Vogelsinger
At 15:28 10.11.2002, Ray Seals said: [snip] >Parse error: parse error, expecting 'T_STRNG' or 'T_VARIABLE' or >'T_NUM_STRING' in on line 33. > >Here is the script that is doing this: > > [...] > >$sql = "SELECT * >FROM users >

<    1   2   3   4   5   >