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

[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 : and in php file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] variables

2001-12-10 Thread Lennart Johansen
Is it advisable to use the same names for variables both in a function and in its activator([?] I'm sorry I don't know the correct word) as follows? Lennart Johansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Variables

2001-04-06 Thread Cheng, Kynan (London)
Hello, Can anyone help me to achieve this using PHP: I would like to have a personal photographic portfolio site with thumbnails. Clicking on the thumbnail would bring up another page which has an enlarged version of the photo on a standard 'template page'. In other words the photo src is a var

[PHP] Variables

2001-07-10 Thread James Bartlett
Hi, This might sound really simple but plz humour me :) How can I tell if two text variables are equal to one another? If I use.. if($text1 = $text2) { echo "The variables are equal"; } else { echo "The variables are not equal"; } then the code in the else state is always printed even if I kn

[PHP] variables.

2001-07-17 Thread Johan Vikerskog (ECS)
ok, i still am a newbie to this and therefor ill ask this silly question. I have made a small test script which checks the inputted name and pass against my database and if it was successfull it typed out success! and if it wasnt successfull it types out wrong password! My problem is. everytim

[PHP] variables

2001-09-11 Thread webgenie
Hello, Is it possible to transfer certain variables to a new scripts, but not doing this as uri-parameters (../bla.php?var1=var&var2=var#) I need it for Usernames and passwords and when the pages get cached the usernames and pwd's can be viewed in the Temp-inetfiles-folder in Windhoze. Thanks,

[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

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

Re: [PHP] variables

2001-12-10 Thread Andrew Brampton
meter, the other one is Actual parameter (/me prays I got that the right way around :)) Andrew - Original Message - From: "Lennart Johansen" <[EMAIL PROTECTED]> To: "PHP MailingList" <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 9:13 AM Subject: [PHP

[PHP] Variables problem

2001-03-17 Thread Per Kallin
Hi! I have a quite big form to fill out a calendar. The form has six fields for every day in a month to make it possible to set up tree apointments (the target of the meeting and Locataion), this makes a total of about ~180 fields so I created them with a for-loop. Now I got this 180 fields named

Re: [PHP] Variables

2001-04-06 Thread Joe Stump
I'm not sure about Freeserve, but I don't think that Geocities supports PHP on their webpages (at least not for users ...). --Joe On Fri, Apr 06, 2001 at 10:05:14AM +0100, Cheng, Kynan (London) wrote: > Hello, > > Can anyone help me to achieve this using PHP: > > I would like to have a persona

RE: [PHP] Variables

2001-04-06 Thread Jon Haworth
But members.evolt.org does, along with MySQL, Cold Fusion, and a heap of other goodies. HTH Jon -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: 06 April 2001 17:03 I'm not sure about Freeserve, but I don't think that Geocities supports PHP on their webpages (at least

RE: [PHP] Variables

2001-04-06 Thread Cheng, Kynan (London)
ril 2001 17:20 > To: '[EMAIL PROTECTED]' > Subject: RE: [PHP] Variables > > But members.evolt.org does, along with MySQL, Cold Fusion, and a heap of > other goodies. > > HTH > Jon > > -Original Message- > From: Joe Stump [mailto:[EMAIL

RE: [PHP] Variables

2001-04-06 Thread Jonathan Sharp
Have you looked at php.net/manual/ ? Just read through the variables portion and it goes over it. -js > -Original Message- > From: Cheng, Kynan (London) [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 9:54 AM > To: '[EMAIL PROTECTED]' > Sub

Re: [PHP] Variables

2001-07-10 Thread Tyler Longren
Try if($text1 == "$text2") { echo "The variables are equal"; } else { echo "The variables are not equal"; } notice the change in the if() Tyler On Wed, 11 Jul 2001 03:12:56 +0100 "James Bartlett" <[EMAIL PROTECTED]> wrote: > Hi, > > This might sound really simple but plz humour me :) > > Ho

Re: [PHP] Variables

2001-07-10 Thread rick
- Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 7:12 PM Subject: [PHP] Variables Hi, This might sound really simple but plz humour me :) How can I tell if two text variables are equal to one another?

Re: [PHP] Variables

2001-07-10 Thread James Bartlett
11, 2001 3:21 AM Subject: Re: [PHP] Variables Try if($text1 == "$text2") { echo "The variables are equal"; } else { echo "The variables are not equal"; } notice the change in the if() Tyler On Wed, 11 Jul 2001 03:12:56 +0100 "

Re: [PHP] Variables

2001-07-10 Thread Dallas K.
don't use the quotes if($test1 == $test2) {echo "True"; } else {echo "False"; } - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 7:21 PM Subject: Re: [P

Re: [PHP] Variables

2001-07-10 Thread James Bartlett
I have tried that also...it still does not want to work... - Original Message - From: Dallas K. To: James Bartlett ; [EMAIL PROTECTED] Sent: Wednesday, July 11, 2001 5:43 AM Subject: Re: [PHP] Variables don't use the quotes if($test1 == $test2) {echo

RE: [PHP] Variables

2001-07-10 Thread Matthew Loff
You could always do... If(!strcmp($text1, $text2)) { equal; } else { not equal; } -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 10:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables No it doesn't seem to

RE: [PHP] Variables

2001-07-10 Thread Don Read
On 11-Jul-01 James Bartlett wrote: > Hi, > > This might sound really simple but plz humour me :) > > How can I tell if two text variables are equal to one another? > > If I use.. > > if($text1 = $text2) > { > echo "The variables are equal"; > } > else > { > echo "The variables are not equal";

RE: [PHP] Variables

2001-07-10 Thread Adrian Ciutureanu
That's IMPOSIBLE! > -Original Message- > From: James Bartlett [mailto:[EMAIL PROTECTED]] > Sent: 11 iulie 2001 05:27 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Variables > > > I have tried that also...it still does not want to work... > -

[PHP] variables empty

2001-04-17 Thread Dennis Haller
Hi all, I've got this problem with variables. In the code below I've got the variables: $jaar and $vak, if I echo them they r displayed correctly, but if the function unlink is called it doesnt seem to know what $jaar and $vak are. If I do $the_path = "/home/H0RNET/ftp/jaar1/PRO/"; then the funct

Re: [PHP] variables

2001-09-11 Thread nayco
Maybe using cookies ??? (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: <[EMAIL PROTECTED]> To: Php-General <[EMAIL PROTECTED]> Sent: Tuesday, September 11, 2001 11:10 AM Subject: [PHP] variables > H

Re: [PHP] variables

2001-09-11 Thread David Otton
On Tue, 11 Sep 2001 11:10:20 +0200, you wrote: >Is it possible to transfer certain variables to a new scripts, but not doing >this as uri-parameters (../bla.php?var1=var&var2=var#) method=post forms cookies >I need it for Usernames and passwords and when the pages get cached the >usernames and

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

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 involve

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

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:www.explodingnet.co

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

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

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

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

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

[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

[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 doesnt out put anything. Anyone seen this before? thanks in advance for your help Cheers From baldey_uk -- PHP General

[PHP] [Newbie] PHP Variables

2001-02-08 Thread Steve Haemelinck
I thought you can pass variables in PHP as in CGI. http://www.xy.com/index.php?contents=HOME contents should be available as variable, but it does not seem to work. Doe anyone has an idea why not? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Variables problem

2001-03-19 Thread Chris Lee
I dont know how good of an idea it is to have 180 variable variable names. oi, headache. but the question you asked was this. " $q = 'tar1-1' how do I access the variable $tar1-1 " no problem echo $$q; -- Chris Lee [EMAIL PROTECTED] ""Per Kallin"" <[EMAIL PROTECTED]> wrote in message

[PHP] PHP: Variables in

2001-05-14 Thread Tarrant Costelloe
I have a log in script written in PHP4 which accesses a secure server. Once entered I want the the secure page to hold the users name (from variable) in the header Something along the lines of this: $name is logged in Obiously I have tried that with no luck, anyone got any ideas? Taz --

[PHP] variables / reading files

2001-06-23 Thread Michael Hall
I'm stuck on a piece of code for a shopping cart. I'm on the final page where the buyer clicks BUY and several things happen. I want to loop through the table that stores the session info and extract details such as item, price, quantity, subtotal and assign all this info to one variable: $var

Re: [PHP] variables empty

2001-04-17 Thread phpman
hey, try this... $the_path = "/home/H0RNET/ftp/" . $jaar . "/" . $vak . "/"; unlink ($the_path . $d); ""Dennis Haller"" <[EMAIL PROTECTED]> wrote in message 9bharm$1td$[EMAIL PROTECTED]">news:9bharm$1td$[EMAIL PROTECTED]... > Hi all, > I've got this problem with variables. In the code below

Re: [PHP] variables empty

2001-04-17 Thread Ulf Wendel
Dennis Haller schrieb: > I've got this problem with variables. In the code below I've got the > variables: $jaar and $vak, if I echo them they r displayed correctly, but if > the function unlink is called it doesnt seem to know what $jaar and $vak > are. If I do $the_path = "/home/H0RNET/ftp/jaa

[PHP] variables within variables

2001-04-28 Thread Robert Morrissey
Hi, I have a form on one page with a text box called 'emailtext'. This gets passed to a php script that gets info from a database (such as $name, $email, etc) and mails selected email addresses; my problem is this: Say, the form passes $emailtext as "Hello $name, how're you?", and this is passe

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 ne

Re: [PHP] Passing PHP Variables

2002-01-17 Thread Mehmet Kamil ERISEN
If you are using sessions, use it as a session variable. --- "John (News)" <[EMAIL PROTECTED]> wrote: > 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 pa

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

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Demitrious S. Kelly
ge- From: Nick Richardson [mailto:[EMAIL PROTECTED]] Sent: Monday, 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

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

RE: [PHP] Variables containing HTML?

2002-02-25 Thread Demitrious S. Kelly
ing and un 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 containing HTML?

2002-02-28 Thread Erik Price
0% 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!! > &

Re: [PHP] Variables containing HTML?

2002-02-28 Thread Simon Willison
d un 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: Demit

RE: [PHP] Variables containing HTML?

2002-02-28 Thread Demitrious S. Kelly
ailto:[EMAIL 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

Re: [PHP] Variables containing HTML?

2002-02-28 Thread Erik Price
gt; :) > > > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 1:41 PM > To: Demitrious S. Kelly > Cc: 'Nick Richardson'; 'PHP General' > Subject: Re: [PHP] Variables containing HTML? > > >

[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[\"na

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

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 th

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 t

RE: [PHP] Variables not set

2002-04-26 Thread Steve Bradwell
PROTECTED] 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,

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

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() { >

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 b

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 > > > > doesnt out put anything. A

Re: [PHP] Variables not working

2002-04-26 Thread Nathan
you have is defined... Cheers, # 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 fil

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 abou

RE: [PHP] Variables not working

2002-04-26 Thread baldey_uk
ubject: 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 that to: $HTTP_SERVER_VARS["HTTP_USER_AGENT"]; Registering globals is insecure unless you ar

Re: [PHP] Variables not working

2002-04-26 Thread Mike
lt;[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 10:29 PM Subject: RE: [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 > > -Ori

RE: [PHP] Variables not working

2002-04-26 Thread Philip Olson
; -Original Message- > From: Nathan [mailto:[EMAIL 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: >

RE: [PHP] Variables not working

2002-04-26 Thread Rasmus Lerdorf
essage- > From: Nathan [mailto:[EMAIL 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["

[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

[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: Foo-Bar What would I need to do, so that I can get the contents of th

[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=value1&var2=val ue2&var3=value3 the easiest way to do this is possibly: $vars = explode("&", $argv[0]); parse_str($vars); with these two lines you will have the variable

Re: [PHP] [Newbie] PHP Variables

2001-02-08 Thread Joe Stump
That should work just fine. Make sure that HOME doesn't have any spaces and is urlencode()'d --Joe On Thu, Feb 08, 2001 at 09:49:18PM +0100, Steve Haemelinck wrote: > I thought you can pass variables in PHP as in CGI. > > http://www.xy.com/index.php?contents=HOME > > contents should be availa

Re: [PHP] [Newbie] PHP Variables

2001-02-08 Thread Philip Olson
If register_globals is turned off, that will not work. See : http://www.php.net/manual/en/configuration.php#ini.register-globals Check phpinfo() For details on your settings, perhaps it is off. Try : And it should display : HOME : for you. Regards, Philip Olson http://www.

Re: [PHP] [Newbie] PHP Variables

2001-02-08 Thread James, Yz
// Index.php file. // Page header // Page footer ... Difficult to tell what's going wrong with just a url. James. > I thought you can pass variables in PHP as in CGI. > > http://www.xy.com/index.php?contents=HOME > > contents should be available as variable, but it does not seem to work.

RE: [PHP] [Newbie] PHP Variables

2001-02-09 Thread Steve Haemelinck
Haemelinck Subject:RE: [PHP] [Newbie] PHP Variables you can, what's the rest of your script look like. > -Original Message- > From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 08, 2001 3:49 PM > To: PHP Mailing Listl (E-mail) > Subject

RE: [PHP] [Newbie] PHP Variables

2001-02-09 Thread Steve Haemelinck
Nothing at all Go tho following page a see for yourself http://213.224.136.110:8080/test.php?a=HOME -Original Message- From: Dustin Vannatter [mailto:[EMAIL PROTECTED]] Sent: vrijdag 9 februari 2001 20:23 To: 'Steve Haemelinck' Subject: RE: [PHP] [Newbie] PHP Variables

RE: [PHP] [Newbie] PHP Variables

2001-02-09 Thread Steve Edberg
manual/en/function.ini-get.php for more info. - steve > > -Original Message- >From: Brian V Bonini [mailto:[EMAIL PROTECTED]] >Sent: donderdag 8 februari 2001 23:55 >To:Steve Haemelinck >Subject: RE: [PHP] [Newbie] PHP Variables > >you can,

Re: [PHP] [Newbie] PHP Variables

2001-02-09 Thread John Vanderbeck
i colon - John Vanderbeck - Admin, GameDesign > > It should display HOME? But it does not ! > > > -Original Message- > From: Brian V Bonini [mailto:[EMAIL PROTECTED]] > Sent: donderdag 8 februari 2001 23:55 > To: Steve Haemelinck > Subject: RE: [PHP] [Newbie] PHP Va

RE: [PHP] [Newbie] PHP Variables

2001-02-09 Thread Steve Haemelinck
Thx, I forgot to set the register_globals to On !!! -Original Message- From: Steve Edberg [mailto:[EMAIL PROTECTED]] Sent: vrijdag 9 februari 2001 20:41 To: Steve Haemelinck Cc: PHP Mailing Listl (E-mail) Subject:RE: [PHP] [Newbie] PHP Variables At 8:06 PM +0100 2

Re: [PHP] [Newbie] PHP Variables

2001-02-09 Thread Christian Reiniger
On Friday 09 February 2001 20:39, John Vanderbeck wrote: > Why are you echoing it twice? Also, the first line, shouldn't it be: > > > Looks liek you dropped the semi colon The semicolon is optional if a closing PHP tag ("?>") follows. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lg

[PHP] PHP Variables across files

2001-02-20 Thread Jay Klehr
Hey all, I have a question about using a variable across multiple PHP files. I want to set a path variable such as: $root_path = /www2/yoursite/docs and I want this variable to be able to be changed in case the site is moved to another server that has a different root path. I was thinking tha

[PHP] Variables in 'friendly' urls

2001-01-16 Thread William Bailey
Hi, Is there a way to pass variables as 'friendly' urls? So instead of haveing a url like www.blah.co.uk/profile.php?team=tigers i could have www.blah.co.uk/profile.php/team/tigers which would call profile.php and set team to tigers. I've been playing with it but i can't seem to g

[PHP] Variables within functions, out?

2001-02-01 Thread James, Yz
Hey guys. Can I firstly say, thanks to all of you who helped me out with my last question about importing MS Access databases into MySQL... It helped tons! However, I have another question. Firstly, I've strayed away from writing many of my own functions, because they give me the fear. But th

Re: [PHP] PHP: Variables in

2001-05-14 Thread Geir Eivind Mork
Tarrant Costelloe wrote: > I have a log in script written in PHP4 which accesses a secure server. Once > entered I want the the secure page to hold the users name (from variable) in > the header Something along the lines of this: > $name is logged in > Obiously I have tried that with no luc

Re: [PHP] PHP: Variables in

2001-05-14 Thread James Holloway
Hiya Taz, James. "Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a log in script written in PHP4 which accesses a secure server. Once > entered I want the the secure page to hold the users name (from variable) in > the header ..

RE: [PHP] PHP: Variables in

2001-05-14 Thread Matt Schroebel
I would recommend: is logged in that way you won't get burned by quotes, etc ... > From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 14, 2001 7:59 AM > To: '[EMAIL PROTECTED]' > I want the the secure page to hold the users name > (from variable) in > the header Some

Re: [PHP] variables / reading files

2001-06-23 Thread Christopher Ostmo
Michael Hall pressed the little lettered thingies in this order... > > I'm stuck on a piece of code for a shopping cart. > > I'm on the final page where the buyer clicks BUY and several things > happen. I want to loop through the table that stores the session info and > extract details such as

Re: [PHP] variables / reading files

2001-06-23 Thread Michael Hall
OK, thanks for that Chris. I did get it in the end, with something very similar to what you suggested: $message = ""; while ( ) { $var1 = $row["1"]; ... etc $item = "$var1 $var2 $var3 etc"; $message = $message . $item . "\n"; } Your solution is cleaner so

Re: [PHP] variables within variables

2001-05-01 Thread Jason Stechschulte
On Sat, Apr 28, 2001 at 07:12:15PM +0100, Robert Morrissey wrote: > I have a form on one page with a text box called 'emailtext'. This gets > passed to a php script that gets info from a database (such as $name, > $email, etc) and mails selected email addresses; my problem is this: > > Say, the

[PHP] Variables in variable names

2001-05-09 Thread seriousj
Hello, I need some help (newbie). I have some variable names with the form: $name_1 $name_2 $name_3 $name_4... I want to access them by doing something like this: $i=0 $name_$i This doesn't work, how do I include another variable in the name of a variable?. Cheers John -- PHP General M

[PHP] Variables not changing problem...

2001-08-23 Thread Nicholas A. Zukin
I'm using the function below to create a listing of name/value pairs to use in Flash. The first time it runs it works fine, but then after the first time, it uses the originally used variables. So if the URL looks like this: mydomain.com/hum_images.php?hub_section=product&hub_subsect

RE: [PHP] Variables within a string

2002-03-10 Thread Chris Cocuzzo
m: webapprentice [mailto:[EMAIL 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\"]"; >

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:

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

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: > > > Foo-Bar > > > > What would I need to do, so that I can get the contents of the tag > (Foo-Bar) into a variable? Check out my "PHP XML Parsing Basics" at http://www.analysisandsolutions.com/code/ph

RE: [PHP] Variables from XML Documents

2002-05-06 Thread Sebastian A.
Sent: 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: > > > Foo-Bar > > > > What would I need to do, so that I can get the contents of the tag &g

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 do

  1   2   >