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,
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.
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:
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
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
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
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,
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
"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
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
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
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
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
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
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
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
- 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?
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
"
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
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
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
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";
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...
> -
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
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
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
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
>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,
-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
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
-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
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
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
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
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
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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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:
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!!
>
&
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
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
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?
>
>
>
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
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
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
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
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,
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
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() {
>
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
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
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
: [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
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
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
; -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:
>
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["
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
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
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
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
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.
// 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.
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
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
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,
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
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
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
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
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
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
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
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 ..
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
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
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
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
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
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
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\"]";
>
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:
$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
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:
>
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
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
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 - 100 of 159 matches
Mail list logo