[PHP] Questions on PHP Variables

2002-11-08 Thread Ray Seals
I'm running PHP 4.2.3 as an Apache Module When I try to use $PHP_AUTH_USER it returns nothing. But if I print out $_SERVER[PHP_AUTH_USER] it prints the user name I tried. All of the sample code and books that I have use the $PHP_AUTH_USER. Can anyone give me some insight on what the difference

Re: [PHP] Questions on PHP Variables

2002-11-08 Thread Marco Tabini
Try looking in the manual for register_globals. It's a setting in php.ini that determines whether server variables are registered as regular variables or not. The material you have probably expects it to be turned on, whereas in more recent versions it has been turned off. It's considered a

Re: [PHP] Questions on PHP Variables

2002-11-08 Thread Justin French
They contain the same data. Newer versions of PHP (= 4.1.1 I think) make use of the new superglobal arrays (like $_POST, $_GET, $_SESSION, $_COOKIE, $_SERVER, etc)... This way of doing things is more secure, and will encourage smarter programming. You can get the old behaviour back by changing

[PHP] Variables

2002-11-03 Thread Bryan McLemore
What is a variables value before said value has been assigned a value? Thanks Bryan

Re: [PHP] Variables

2002-11-03 Thread Hugh Danaher
, 2002 1:01 AM Subject: [PHP] Variables What is a variables value before said value has been assigned a value? Thanks Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Variables and Forms

2002-09-24 Thread ed
I'm trying to pass variables from one page to the next but don't want to use a hidden input type=text box. I need to break from frames and I don't know a way to pass that to the action tag in the form. If there's a way to do that then great but I haven't found it. I've also tried the meta

Re: [PHP] Variables and Forms

2002-09-24 Thread Joseph W. Goff
2:46 PM Subject: [PHP] Variables and Forms I'm trying to pass variables from one page to the next but don't want to use a hidden input type=text box. I need to break from frames and I don't know a way to pass that to the action tag in the form. If there's a way to do that then great but I

[PHP] Variables Case Sensitivity??

2002-09-19 Thread Georgie Casey
is there any way to make variables NOT case sensitive?? A partner is posting information to one of my PHP scripts and cant gurantee that variables passed will be lowercase -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
Georgie Casey wrote: is there any way to make variables NOT case sensitive?? A partner is posting information to one of my PHP scripts and cant gurantee that variables passed will be lowercase Sure, whatever you use make it lower case, whataever he send, cook to lower case. Cheers, Rob. --

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Georgie Casey
yea, i probably didnt make that clear its the variables NAMES that he can't gurantee to be lowercase eg hell pass http://www.server.com/test.php?NAME=JohnIDNumber=12 when im expecting $name and $idnumber sorry Robert Cummings [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
Georgie Casey wrote: yea, i probably didnt make that clear its the variables NAMES that he can't gurantee to be lowercase eg hell pass http://www.server.com/test.php?NAME=JohnIDNumber=12 when im expecting $name and $idnumber $lowerVars = array(); foreach( $_POST as $key = $value ) {

Fw: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Kevin Stone
: Thursday, September 19, 2002 12:18 PM Subject: [PHP] Variables Case Sensitivity?? is there any way to make variables NOT case sensitive?? A partner is posting information to one of my PHP scripts and cant gurantee that variables passed will be lowercase -- PHP General Mailing List (http

[PHP] variables not behaving as expected

2002-08-19 Thread ROBERT MCPEAK
We've recently upgraded to PHP version 4.2.2 running on SuSE 7.2 with the 2.4.4 kernel and I'm seeing variables behave in a way I didn't expect. With the prior configuration http post variables were freely available on the receiving page, but now, for some reason, they aren't. This code:

RE: [PHP] variables not behaving as expected

2002-08-19 Thread MET
Read this. http://www.php.net/release_4_2_0.php ~ Matthew -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] variables not behaving as expected We've recently upgraded to PHP version

Re: [PHP] variables not behaving as expected

2002-08-19 Thread Joseph W. Goff
= $post; } - Original Message - From: ROBERT MCPEAK [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 19, 2002 12:58 PM Subject: [PHP] variables not behaving as expected We've recently upgraded to PHP version 4.2.2 running on SuSE 7.2 with the 2.4.4 kernel and I'm seeing

[PHP] Why don't my PHP variables get posted?

2002-08-15 Thread DonPro
Hi, I have a small form with checkbox objects. Below is the code: form method=POST action=doc_complete.html input type=checkbox name=b13 value=checked font size=3Export Declaration (B13)/fontbr input type=checkbox name=\cinvoice\ value=checked font size=3Commercial Invoice/font p align=left

[PHP] variables

2002-08-02 Thread Bob Lockie
What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? I think the documentation says either can be used to do the same thing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variables

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 10:43, Bob Lockie wrote: What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? I think the documentation says either can be used to do the same thing. $_REQUEST holds everything from $_GET, $_POST, and $_COOKIE combined, thus you

Re: [PHP] variables

2002-08-02 Thread Bob Lockie
On Sat, 3 Aug 2002 12:19:15 +0800, Jason Wong wrote: On Saturday 03 August 2002 10:43, Bob Lockie wrote: What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? I think the documentation says either can be used to do the same thing. $_REQUEST holds everything

Re: [PHP] variables

2002-08-02 Thread Jason Wong
On Saturday 03 August 2002 12:55, Bob Lockie wrote: $_REQUEST holds everything from $_GET, $_POST, and $_COOKIE combined, thus you cannot differentiate where the value came from. If you want to be sure, be specific and use one of $_GET/$_POST/$_COOKIE. There is no reason other than

[PHP] Passing PHP variables into javascript

2002-07-29 Thread Bill Hudspeth
I am having a problem passing a variable from PHP to Javascript and getting my JS function to recognize a form element object. I am trying to use the selection of a particular option in a dropdown menu to control the visibility of another form control element (another select box). In other words,

[PHP] Re: Passing PHP variables into javascript

2002-07-29 Thread Richard Lynch
echo option value='$chon_pet[7]'$chon_pet[7]/option; JavaScript won't let you use [] in a name, so you'll have to refer to the elements by number. -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to

[PHP] Variables aren't being passed to php page

2002-07-14 Thread Mike Heffner
Hi, I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed to the PHP page. For example, with the following file test.php, using the URL 'test.php?mid=1' displays 'nope'. ? if (isset($mid)) echo $mid;

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Jason Reid
AM Subject: [PHP] Variables aren't being passed to php page Hi, I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed to the PHP page. For example, with the following file test.php, using the URL 'test.php

RE: [PHP] Variables aren't being passed to php page

2002-07-14 Thread John Holmes
I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed to the PHP page. For example, with the following file test.php, using the URL 'test.php?mid=1' displays 'nope'. Do you always upgrade programs without

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Jason Wong
On Sunday 14 July 2002 21:53, John Holmes wrote: I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed to the PHP page. For example, with the following file test.php, using the URL 'test.php?mid=1'

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Philip Olson
Please read this: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson On Sun, 14 Jul 2002, Mike Heffner wrote: Hi, I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems to be a problem that variables from POST/GET are not being passed

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Philip Olson
PHP page. For example, with the following file test.php, using the URL 'test.php?mid=1' displays 'nope'. This list gets at least one question a day on this subject ... Please refer to the manual when this happens, specifically:

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Peter
I totally agree. No offence to all the ppl who have asked, but didn't it say on the download page that there had been major changes to the way variables are used?? John Holmes [EMAIL PROTECTED] wrote in message 000a01c22b3d$e4755790$b402a8c0@mango">news:000a01c22b3d$e4755790$b402a8c0@mango...

[PHP] variables not being passed from form ??

2002-06-18 Thread Anthony 'Crash' Ciarochi
I have a web page which contains a form whose action is a php script. Unfortunately, NONE of the form's variables are being passed when the form is submitted. For example: the submit button's name is 'submit', and the value is 'Add', but in the receiving php script, $submit is empty, and so is

Re: [PHP] variables not being passed from form ??

2002-06-18 Thread Analysis Solutions
On Tue, Jun 18, 2002 at 02:42:38PM -0700, Anthony 'Crash' Ciarochi wrote: For example: the submit button's name is 'submit', and the value is 'Add', but in the receiving php script, $submit is empty, and so is $HTTP_POST_VARS[submit'] register_globals is On Your HTML is broken? Post

Re: [PHP] variables not being passed from form ??

2002-06-18 Thread Kevin Stone
18, 2002 3:42 PM Subject: [PHP] variables not being passed from form ?? I have a web page which contains a form whose action is a php script. Unfortunately, NONE of the form's variables are being passed when the form is submitted. For example: the submit button's name is 'submit

Re: [PHP] variables not being passed from form ??

2002-06-18 Thread Chris Shiflett
Anthony, Can you create a very simple test case that demonstrates this problem and post it? It might reveal something, because otherwise, I don't see a cause for trouble with what you've described. Chris P.S. Please copy me in any replies if you want to make sure I see it. Anthony 'Crash'

[PHP] Variables - Using The Contents Of A Varibale Name Built Dynamically

2002-06-01 Thread Jason Teagle
I have found an alternate way of achieving what I want, but I'm wondering if there was an easier way. I have a PHP file that builds a Web page that includes forms. The forms are built dynamically based on the contents of a file, and thus there may be one or two or more forms on the page at any

[PHP] Newbie question : PHP variables are not posted by this

2002-05-31 Thread Frédérick St-Hilaire
It a BASIC question, With the following: FORM NAME='Job_Application' ACTION=job_action.php METHOD=post ENCTYPE=multipart/form-data INPUT TYPE=text NAME=name Name : BR INPUT TYPE=HIDDEN NAME=MAX_FILE_SIZE VALUE=20 INPUT TYPE=FILE NAME=userfileBRBR INPUT TYPE=submit

[PHP] Re: Newbie question : PHP variables are not posted by this

2002-05-31 Thread Michael Davey
Can you send the code that is failing to the list - it will help in working out the problem... Mikey FréDéRick St-Hilaire [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... It a BASIC question, With the following: FORM NAME='Job_Application'

Re: [PHP] Re: Newbie question : PHP variables are not posted by this

2002-05-31 Thread Stuart Dallas
On Friday, May 31, 2002, 5:17:49 PM, you wrote: Can you send the code that is failing to the list - it will help in working out the problem... And include your platform details (OS, PHP version, etc). -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread Brad Harriger
Are HTML Checkbox values handled the same way as Select Multiple tags? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread 1LT John W. Holmes
, May 29, 2002 8:56 AM Subject: [PHP] HTML Checkboxes and PHP variables Are HTML Checkbox values handled the same way as Select Multiple tags? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread Michael Hall
check One and Three, then you'll have a $foo array like this: $foo[0]='one'; $foo[1]='three'; ---John Holmes... - Original Message - From: Brad Harriger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 8:56 AM Subject: [PHP] HTML Checkboxes and PHP variables

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread 1LT John W. Holmes
PROTECTED] Cc: [EMAIL PROTECTED]; Brad Harriger [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 7:39 PM Subject: Re: [PHP] HTML Checkboxes and PHP variables I've been wrestling with the same issue. I had some code loop through and create an arbitrary number of checkbox inputs with the name 'foo

[PHP] variables

2002-05-22 Thread Roman Duriancik
When are set in php.ini (php version 4.2.1 on linux) register_globals = Off how I read variables from html files with forms in other php file ? Thanks roman for example : html file : form action=query.php method=POST input type=text name=name1 value= input type=submit value = OK

[PHP] Variables in PHP: public vs. private

2002-05-17 Thread Christoph Starkmann
Hi there! I'm just starting to get in touch with oo programming in PHP. Now I've got a quite simple question, I guess... In an example in the PHP-help, I found a class definition with accessor functions like dummy-get_some_variable(); But AFAIK (and see ;)), variables in PHP in fact are

Re: [PHP] Variables in PHP: public vs. private

2002-05-17 Thread hassan
HI, as far as i know private vars should be available in the next release of the zend engine, thus, using get and set functions is a good practice to be sure that your apps will still function in future php releases. Regrads. ___ Hassan El

Re: [PHP] Variables in PHP: public vs. private

2002-05-17 Thread Dan Hardiker
But AFAIK (and see ;)), variables in PHP in fact are never private, but always public, at least within the current script. This is correct, all functions and variables inside a class are public. There are no protected nor private func's / var's. So what would be the sense in having this

[PHP] variables attached to url

2002-05-11 Thread jyrgen
a few weeks ago there was a discussion about how to get variables attached to a url like http://server.com/script.php?var1=value1var2=val ue2var3=value3 the easiest way to do this is possibly: $vars = explode(, $argv[0]); parse_str($vars); with these two lines you will have the variables

[PHP] Variables from XML Documents

2002-05-06 Thread Sebastian A.
Hello, I have recently been trying to use templates with XML documents. My problem however is that I cannot get the values between XML tags into variables. For example Example XML Document: me name Foo-Bar /name /me What would I need to do, so that I can get the

Re: [PHP] Variables from XML Documents

2002-05-06 Thread Analysis Solutions
On Mon, May 06, 2002 at 08:20:46PM +0200, Sebastian A. wrote: me name Foo-Bar /name /me What would I need to do, so that I can get the contents of the name tag (Foo-Bar) into a variable? Check out my PHP XML Parsing Basics at

RE: [PHP] Variables from XML Documents

2002-05-06 Thread Sebastian A.
: Monday, May 06, 2002 8:25 PM To: PHP List Subject: Re: [PHP] Variables from XML Documents On Mon, May 06, 2002 at 08:20:46PM +0200, Sebastian A. wrote: me name Foo-Bar /name /me What would I need to do, so that I can get the contents of the name tag (Foo-Bar

Re: [PHP] Variables from XML Documents

2002-05-06 Thread Analysis Solutions
Sebastian: On Tue, May 07, 2002 at 07:06:18AM +0200, Sebastian A. wrote: The parsing is not the problem. I am already using the PHP XML parser, but the problem is that it I cannot get the content of elements into variables like I already stated. Does no one know how to do this? You are

RE: [PHP] Variables from XML Documents

2002-05-06 Thread Martin Towell
07, 2002 3:06 PM To: PHP General List (PHP.NET) Subject: RE: [PHP] Variables from XML Documents The parsing is not the problem. I am already using the PHP XML parser, but the problem is that it I cannot get the content of elements into variables like I already stated. Does no one know how to do

Re: [PHP] variables over 2 pages w/ a table.

2002-05-02 Thread Marius Ursache
try to send the same url + start=8 index.php?left=newsltitle=indexlext=phpstart=8 Jule a écrit : Hey, i've got a little problem: I have two php pages index.php and news/index.php now in index.php there is a table which shows news/index.php $left = news; $ltitle = index; $lext=

[PHP] Variables within variable names

2002-05-02 Thread Jackson Miller
I want to do something along the lines of: $type = basic; $$type_user = jaxn; echo $basic_user; and have the output be jaxn. I have tried everything I can think of, and I have looked in all my books. I know how to: $type = basic; $$type = jaxn; echo $basic; but this won't do what I need. I

Re: [PHP] Variables within variable names

2002-05-02 Thread Jason Wong
On Friday 03 May 2002 02:43, Jackson Miller wrote: I want to do something along the lines of: $type = basic; $$type_user = jaxn; echo $basic_user; and have the output be jaxn. I have tried everything I can think of, and I have looked in all my books. I know how to: $type = basic;

[PHP] variables over 2 pages w/ a table.

2002-05-01 Thread Jule
Hey, i've got a little problem: I have two php pages index.php and news/index.php now in index.php there is a table which shows news/index.php $left = news; $ltitle = index; $lext= php; include ($left/$ltitle.$lext); now this allows me to keep the layout the same, but change the pages

RE: [PHP] variables over 2 pages w/ a table.

2002-05-01 Thread Craig Vincent
$left = news; $ltitle = index; $lext= php; include ($left/$ltitle.$lext); a href=index.php?lext=php?start=8next/a so this should link to the index page, which calls upon news/index.php, opens it in the left column of the table, and gives $start the value of 8. but it gives me this

[PHP] Variables not set

2002-04-26 Thread Liam Gibbs
I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() { $h = $this; $i = $that; } function that() { } Now, when I run this(), $this isn't set (even though it's above it in

Re: [PHP] Variables not set

2002-04-26 Thread Pushkar Pradhan
On Fri, 26 Apr 2002, Liam Gibbs wrote: Shouldn't you be using GLOBAL to access $this, $that inside functions? I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() {

Re: [PHP] Variables not set

2002-04-26 Thread Rasmus Lerdorf
Please read http://www.php.net/manual/en/language.variables.scope.php On Fri, 26 Apr 2002, Liam Gibbs wrote: I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() {

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
] Subject: [PHP] Variables not set I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() { $h = $this; $i = $that; } function that() { } Now, when I run this(), $this isn't set

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
Ha, Sorry wrong instance here, ya global or pass the vars to the function. -Original Message- From: Steve Bradwell [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:13 PM To: 'Liam Gibbs'; [EMAIL PROTECTED] Subject: RE: [PHP] Variables not set I'm pretty new to php but I think

Re: [PHP] Variables not set

2002-04-26 Thread Miguel Cruz
On Fri, 26 Apr 2002, Liam Gibbs wrote: I have a problem with my variables not being set. I have a file I use for constants and functions, structured like so: $this = this; $that = that; . . . function this() { $h = $this; $i = $that; } function that() { } Now, when I

Re: [PHP] Variables not set

2002-04-26 Thread Erik Price
On Friday, April 26, 2002, at 04:12 PM, Miguel Cruz wrote: There is something called global scope which refers to all variables created outside of any function or object. Variables with global scope are then available anywhere outside of a function or object. Is there a difference

[PHP] Variables not working

2002-04-26 Thread baldey_uk
Hello all, im not sure if its my installation or if on doing something wrong but i cant seem to use any of the variables from forms that i PUT to. Or any full stop! even ?php echo $HTTP_USER_AGENT; ? doesnt out put anything. Anyone seen this before? thanks in advance for your help Cheers From

Re: [PHP] Variables not working

2002-04-26 Thread Rasmus Lerdorf
Turn on register_globals in your php.ini file. On Sat, 27 Apr 2002, baldey_uk wrote: Hello all, im not sure if its my installation or if on doing something wrong but i cant seem to use any of the variables from forms that i PUT to. Or any full stop! even ?php echo $HTTP_USER_AGENT; ?

Re: [PHP] Variables not working

2002-04-26 Thread Nathan
, # Nathan - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: baldey_uk Cc: Sent: Friday, April 26, 2002 6:41 PM Subject: Re: [PHP] Variables not working Turn on register_globals in your php.ini file. On Sat, 27 Apr 2002, baldey_uk wrote: Hello all, im not sure if its

RE: [PHP] Variables not working

2002-04-26 Thread baldey_uk
: [PHP] Variables not working Before you get carried away with registering globals, try echoing: $_SERVER[HTTP_USER_AGENT]; Or, for versions prior to 4.1.X, change that to: $HTTP_SERVER_VARS[HTTP_USER_AGENT]; Registering globals is insecure unless you are VERY careful about how every variable you

RE: [PHP] Variables not working

2002-04-26 Thread baldey_uk
: [PHP] Variables not working Before you get carried away with registering globals, try echoing: $_SERVER[HTTP_USER_AGENT]; Or, for versions prior to 4.1.X, change that to: $HTTP_SERVER_VARS[HTTP_USER_AGENT]; Registering globals is insecure unless you are VERY careful about how every variable

Re: [PHP] Variables not working

2002-04-26 Thread Mike
: [PHP] Variables not working Sorry let me rephrase that ' can anyone point me to good docs about passing variables between html and php' please? Cheers baldey_uk -Original Message- From: Nathan [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 02:34 To: Rasmus Lerdorf; [EMAIL

RE: [PHP] Variables not working

2002-04-26 Thread Philip Olson
PROTECTED]] Sent: 27 April 2002 02:34 To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Variables not working Before you get carried away with registering globals, try echoing: $_SERVER[HTTP_USER_AGENT]; Or, for versions prior to 4.1.X, change

RE: [PHP] Variables not working

2002-04-26 Thread Rasmus Lerdorf
PROTECTED]] Sent: 27 April 2002 02:34 To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Variables not working Before you get carried away with registering globals, try echoing: $_SERVER[HTTP_USER_AGENT]; Or, for versions prior to 4.1.X, change

[PHP] variables

2002-04-20 Thread Jule Slootbeek
Hey guys, i have this script that changes pages in a table with the include() command, but i ran into trouble when i tried to change the pages by linking to index.php?left=theband because it would feed it to the index.php, but index.php would just change left back to news which is the default,

Re: [PHP] variables

2002-04-20 Thread Justin Blake
Jule Slootbeek wrote: Hey guys, i have this script that changes pages in a table with the include() command, but i ran into trouble when i tried to change the pages by linking to index.php?left=theband because it would feed it to the index.php, but index.php would just change left back to

[PHP] variables within variables - question

2002-03-27 Thread Phil Schwarzmann
Im having a VERY hard time trying to explain this Here is a bit of my code... for ($i = 0; $i $num_fields; $i++) { $field = mysql_field_name($result, $i); $field2 = .$field; $output = str_replace($field2, $field), $output); } The problem I'm having here is that the variable $field

RE: [PHP] variables within variables - question

2002-03-27 Thread Rick Emery
$field2 = .$$field; -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] variables within variables - question Im having a VERY hard time trying to explain this Here is a bit of my

[PHP] Variables within a string

2002-03-10 Thread webapprentice
Hello, When I try to do this: $foo = Entry for for $HTTP_POST_VARS[\name\]; I receive this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' on line X Why does it do this, and how do I get around this, besides assigning the value of $HTTP_POST_VARS[\name\]

RE: [PHP] Variables within a string

2002-03-10 Thread Chris Cocuzzo
PROTECTED]] Sent: Sunday, March 10, 2002 10:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Variables within a string Hello, When I try to do this: $foo = Entry for for $HTTP_POST_VARS[\name\]; I receive this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING

Re: [PHP] Variables within a string

2002-03-10 Thread Jason Wong
On Monday 11 March 2002 11:10, Chris Cocuzzo wrote: I would imagine the problem has something to do with those escaped quote marks, but in any case, you could probably get around it by doing this: $foo = Entry for . $HTTP_POST_VARS[name]; some correct me if I'm wrong Or simply: $foo =

[PHP] Variables that can't be set by query string

2002-03-01 Thread James Taylor
I have a weblog type script I'm building for a friend where there are main posts then comments - Registered users can post comments, unregistered don't even have the option I was thinking of making a page where a user logs on, then it registers a session with a few variables like $sid,

Re: [PHP] Variables that can't be set by query string

2002-03-01 Thread Erik Price
On Friday, March 1, 2002, at 06:11 PM, James Taylor wrote: IF a user is logged on, they can post, if not they don't even see the option. Instead of doing a SQL query everytime they look at the posts, I was thinking of registering a variable called like $true where if they're logged on,

Re: [PHP] Variables containing HTML?

2002-02-28 Thread Erik Price
Richardson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 8:11 PM To: Demitrious S. Kelly; 'PHP General' Subject: RE: [PHP] Variables containing HTML? Right on!!! - This works great!! Can you explain what it does ;) - i'm completly lost in it ;) //Nick -Original Message

Re: [PHP] Variables containing HTML?

2002-02-28 Thread Simon Willison
1000% simpler -Original Message- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 8:11 PM To: Demitrious S. Kelly; 'PHP General' Subject: RE: [PHP] Variables containing HTML? Right on!!! - This works great!! Can you explain what it does ;) - i'm

RE: [PHP] Variables containing HTML?

2002-02-28 Thread Demitrious S. Kelly
PROTECTED]] Sent: Thursday, February 28, 2002 1:41 PM To: Demitrious S. Kelly Cc: 'Nick Richardson'; 'PHP General' Subject: Re: [PHP] Variables containing HTML? What's the difference between this and the serialize() function? Erik On Monday, February 25, 2002, at 11:27 PM, Demitrious S. Kelly

Re: [PHP] Variables containing HTML?

2002-02-28 Thread Erik Price
Cc: 'Nick Richardson'; 'PHP General' Subject: Re: [PHP] Variables containing HTML? What's the difference between this and the serialize() function? Erik On Monday, February 25, 2002, at 11:27 PM, Demitrious S. Kelly wrote: It breaks the individual characters down into their ascii

[PHP] Variables containing HTML?

2002-02-25 Thread Nick Richardson
Stupid question for everyone... i'm just having one of those braindead moments. I have a page which allows users to add custom headers and footers in HTML. (i.e. Fill in a text area with a bunch of html, and that's stored in a mysql database and retrived when that user logs in again). The

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Martin Towell
there's htmlentities or something like that - try that w/ your hidden field -Original Message- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 2:56 PM To: PHP General Subject: [PHP] Variables containing HTML? Stupid question for everyone... i'm just

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Demitrious S. Kelly
, February 25, 2002 7:56 PM To: PHP General Subject: [PHP] Variables containing HTML? Stupid question for everyone... i'm just having one of those braindead moments. I have a page which allows users to add custom headers and footers in HTML. (i.e. Fill in a text area with a bunch of html, and that's

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Nick Richardson
Right on!!! - This works great!! Can you explain what it does ;) - i'm completly lost in it ;) //Nick -Original Message- From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 8:02 PM To: 'Nick Richardson'; 'PHP General' Subject: RE: [PHP] Variables

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Demitrious S. Kelly
slashing and validating, and revalidating, etc, etc, etc, etc so I made this. Which makes things 1000% simpler -Original Message- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 8:11 PM To: Demitrious S. Kelly; 'PHP General' Subject: RE: [PHP] Variables

[PHP] Variables Limit

2002-01-26 Thread Philip J. Newman
Is there any limit on the amount of variables that you can use? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012

Re: [PHP] Variables Limit

2002-01-26 Thread Craig Vincent
Is there any limit on the amount of variables that you can use? I can't say for certain as I don't know the insides of PHP *that* well...but I would guess your limitation on variables would be based on your server/user memory allowances and/or your memory limitations for PHP scripts. Sincerely,

Re: [PHP] Variables Limit

2002-01-26 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Philip J. Newman blurted Is there any limit on the amount of variables that you can use? Well I certainly agree with Craig, but I'm interested to know why you ask? Is it just idle curiosity or some interesting project you're

Re: [PHP] Variables Limit

2002-01-26 Thread Philip J. Newman
I have to exchage over 304 different names, codes, and dates ... - Original Message - From: Nick Wilson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 27, 2002 7:35 AM Subject: Re: [PHP] Variables Limit -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: [PHP] Variables Limit

2002-01-26 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Philip J. Newman blurted I have to exchage over 304 different names, codes, and dates ... 305? :-) Doesn't sound like it would be a problem. - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:

Re: [PHP] Variables Limit

2002-01-26 Thread Kurth Bemis
Unless your getting the values through a POST or a GET...both of these have limitesi forget what it is...maybe 1024 bytes? you'd jave to read the http rfc ~kurth On Sat, 2002-01-26 at 14:51, Nick Wilson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Philip J. Newman

Re: [PHP] Variables Limit

2002-01-26 Thread Philip J. Newman
cool - Original Message - From: Nick Wilson [EMAIL PROTECTED] To: PHP-General [EMAIL PROTECTED] Sent: Sunday, January 27, 2002 8:51 AM Subject: Re: [PHP] Variables Limit -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Philip J. Newman blurted I have to exchage

Re: [PHP] Variables Limit

2002-01-26 Thread Michael Kimsal
Philip J. Newman wrote: I have to exchage over 304 different names, codes, and dates ... Instead of hundreds of discrete variables, would you not be better served by dividing them up into arrays of some sort? instead of $name1, $name2, etc $name[1] $name[2] or $name[first] $name[last]

RE: [PHP] Variables Limit

2002-01-26 Thread scott
Check out arrays... especially if you're going to be dealing with 304 individual variables. your code will be MUCH happier :) -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Variables Limit I have to exchage over 304 different names, codes

[PHP] Passing PHP Variables

2002-01-17 Thread John (News)
I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed visibly within the url. Does anyone have any suggestions on how I can accomplish this? Hippie. -- PHP

Re: [PHP] Passing PHP Variables

2002-01-17 Thread Ben Sinclair
Either use sessions or pass it via POST in using a form. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: John (News) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 4:48 PM Subject: [PHP] Passing PHP Variables I need to pass a variable e.g. $var1

<    1   2   3   4   5   >