Thank you for that answer! That worked perfectly!
That leads me to another query, again, which I have searched for...
I'd like to be able to switch Register_Globals ON, but I can't find my
php.ini file.
Running phpinfo(); tells me that my 'php.ini' file is stored in
C:\WINDOWS, but it's not th
From: "Greg Watson" <[EMAIL PROTECTED]>
> doesn't look as
> though variables are being passed from page to page.
Register_globals is OFF in your php.ini file, so you need to use
$_GET['testvar'] instead of $testvar.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Hi Guys,
I've Googled and RTFM'd, but I can't seem to figure this out - it may
not even be a php problem but I'm not sure.
I've set up Apache, PHP and MySQL on my laptop running XP Home. Although
I've coded php for a while now, I had never set these up on my own
computer before. The php seems to b
On Thursday 25 September 2003 15:46, Louie Miranda wrote:
> if ($psi_shipping_addtnl_info != '') {
> echo '<< NO USER INPUT >>';
> }
>
> Im catching a _POST variable from a form, now i wonder im filtering it out
> to pass again to another variable is this possible?
*assign* to another variable //
if ($psi_shipping_addtnl_info != '') {
echo '<< NO USER INPUT >>';
}
Im catching a _POST variable from a form, now i wonder im filtering it out
to pass again to another variable is this possible?
-- -
Louie Miranda
http://www.axishift.com
--
PHP General Mailing List (http://www.php.net/)
To u
Cut&paste the code, also file include/surveysavereply.inc.
Svein Larsen wrote:
On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote:
On Tuesday 03 June 2003 13:58, Jay Blanchard wrote:
[snip]
We would have to see some code
Jay
I'm not able to reproduce this in a short code-snippet.
But fr
> Yep, its a bad paste :) The script is error-free...
> But there is no code that change the variable and it still get changed.
> Eg. it change from 75497 to 6894
In order of increasing probability:
- you can attribute it to black magic
- you've hit upon a php bug
- there's something wrong wi
On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote:
> > On Tuesday 03 June 2003 13:58, Jay Blanchard wrote:
> > > [snip]
> > > We would have to see some code
> > >
> > > Jay
> >
> > I'm not able to reproduce this in a short code-snippet.
> > But from the first echo to the last echo $lid ch
Thats the strange thing... there IS NO CODE that change the value...
And the cut/paste is bad... there is no parse errors and the code snip is only
a small part of a scriptfile.
- Svein
On Tuesday 03 June 2003 15:33, Jay Blanchard wrote:
> [snip]
> I'm not able to reproduce this in a short code-
[snip]
I'm not able to reproduce this in a short code-snippet.
But from the first echo to the last echo $lid change its value:
if ($hostid==31) echo "lid1: $lid";
# Paragraphs
[/snip]
$lid is getting set the first time before the IF statement. From this IF
to the last $lid in what yo
> On Tuesday 03 June 2003 13:58, Jay Blanchard wrote:
> > [snip]
> > We would have to see some code
> >
> > Jay
>
> I'm not able to reproduce this in a short code-snippet.
> But from the first echo to the last echo $lid change its value:
Either this is a bad cut and paste job or this script wi
On Tuesday 03 June 2003 13:58, Jay Blanchard wrote:
> [snip]
> We would have to see some code
>
> Jay
I'm not able to reproduce this in a short code-snippet.
But from the first echo to the last echo $lid change its value:
if ($hostid==31) echo "lid1: $lid";
# Paragraphs
#
> I'm getting strange behavior in some of my scripts
> I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the
> problem. The problem is that variables changes its values from one line
og
> code to another - without specific code that should change the value.
> Do anybody else had t
[snip]
I'm getting strange behavior in some of my scripts
I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the
problem. The problem is that variables changes its values from one line
og code to another - without specific code that should change the
value. Do anybody else had this
I'm getting strange behavior in some of my scripts
I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the
problem. The problem is that variables changes its values from one line og
code to another - without specific code that should change the value.
Do anybody else had this proble
I don't know of a way to get more detail on which bind variables are
missing. You could try putting OCIInternalDebug(1); in you script. Normally
when i get this error it's usually a typo in my code.
Lang
Gregory Watson wrote:
> Thanks Lang - from the notes you sent me I'm able to bind arrays
ng and suddenly with I redefined the php environment,
> the php variables are not getting passed on.
>
> why?
>
> --
> Member - Liberal InternationalOn 11 Sept 2001 the WORLD was violated.
> This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
> Society MUST be saved
Questions, I have a
cusotmer using a basic username and password
verifier on a php Web Page.
This was working and suddenly with I redefined the php environment,
the php variables are not getting passed on.
why?
--
Member - Liberal International On 11 Sept 2001 the WORLD was violated.
This
Thanks Lang - from the notes you sent me I'm able to bind arrays
successfully using a complex select, but using the procedure still gives
me an error:
Warning: OCIStmtExecute: ORA-01008: not all variables bound in
C:\ftp_dir\boards\winners.php on line 20
Warning: OCIFetch: ORA-24374: de
On Thu, 29 May 2003 07:21:01 -0700 (Pacific Standard Time), Rasmus
Lerdorf wrote:
>It isn't a pointer. It is a reference which you should think of as a
>symbol table alias. A pointer, at least by my definition, is a memory
>address. In PHP it isn't a memory address, just another entry in the
>s
> -Original Message-
> From: Wendell Brown [mailto:[EMAIL PROTECTED]
> Sent: 29 May 2003 15:18
>
> On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS]
> wrote:
>
> >Well, how about references, then? (And me, personally, I'd
> use isset()
> >rather than is_array().)
> >
>
On Thu, 29 May 2003, Wendell Brown wrote:
> On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS]
> wrote:
>
> >Well, how about references, then? (And me, personally, I'd use isset()
> >rather than is_array().)
> >
> > if (isset($_POST)):
> > $POST = &$_POST;
> > else:
> >
On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS]
wrote:
>Well, how about references, then? (And me, personally, I'd use isset()
>rather than is_array().)
>
> if (isset($_POST)):
> $POST = &$_POST;
> else:
> $POST = &$HTTP_POST_VARS;
> endif;
I was told that PHP
> -Original Message-
> From: Wendell Brown [mailto:[EMAIL PROTECTED]
> Sent: 28 May 2003 15:02
>
> On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote:
>
> >I would've thought that $HTTP_*_VARS will be deprecated
> sometime in the
> >future. It might be an idea to write your own acce
> -Original Message-
> From: David Grant [mailto:[EMAIL PROTECTED]
> Sent: 28 May 2003 12:47
> To: Leif K-Brooks
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Variables don't pass... *sniff*
>
>
> Leif K-Brooks wrote:
>
> > To
Have a look at this paper, in particular the collections section at the end
http://www.phpconference.de/2001/slides/arntzen_ocipaper.txt
I've never used them myself, because they look a bit dodgy. But it may be
the only way to do what you're trying to do.
Lang
Gregory Watson wrote:
> Hi guys.
Hi guys...
I'm very new to using Oracle and stored procedures.
I'm using a stored procedure to return 12 variables, 8 of which are arrays.
$EventID = 41403;
$BufferSize = 3000;
$connection_oracle = OCILogon("","**", "**");
$statement_oracle = OCIParse($connection_oracle
Deprecated means that it has fallen out of favor, and is
_in_the_process_of_being_phased_out_ You should not rely on this code in
new applications. Go look it up in a dictionary.
If you have to be backward compatible with < 4.1.0 (which was released
on 10-Dec-2001!) I suggest something like this:
ndell Brown [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 7:43 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Variables don't pass... *sniff*
On Wed, 28 May 2003 16:30:17 +0200, [EMAIL PROTECTED] wrote:
>Howcome? I don't think I understand that...
Ch
] ; [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 4:42 PM
Subject: Re: [PHP] Variables don't pass... *sniff*
On Wed, 28 May 2003 16:30:17 +0200, [EMAIL PROTECTED] wrote:
>Howcome? I don't think I understand that...
Check this out.
http://us4.php.net/registerglobals
--
PHP Gen
Wendell Brown wrote:
Egads! Wouldn't the following be a little simpler?
At the top of the file put.
if( is_array($_POST) )
$pArray = $_POST;
else
$pArray = $HTTP_POST_VARS;
Absolutely! I've been getting a little carried away with moving a lot
of PHP functions to OO classes recently...
On Wed, 28 May 2003 16:30:17 +0200, [EMAIL PROTECTED] wrote:
>Howcome? I don't think I understand that...
Check this out.
http://us4.php.net/registerglobals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Yup! You could even add that php to the auto_prepend_file variable in
your php.ini or add this to your .htaccess file (assuming you are
running Apache and have overwrite turned on) and the prepend will happen
automagically on every php program:
php_value auto_prepend_file "/www/extract_p
> However, both of these "solutions" create the same security issue that
> turning RegisterGlobals on took care of in the first place. :)
Howcome? I don't think I understand that... Is the security issue not with
the fact that you're POSTing og GETing variables rather than the way you do
it? Woul
On Wed, 28 May 2003 16:13:22 +0200, [EMAIL PROTECTED] wrote:
>if (!empty($_POST)) {
> extract($_POST);
>} else {
> extract($HTTP_POST_VARS);
>}
>
>And have it in an include file, "extract_post.php".
>This way I can just include it and all variables are available, just like if
>register_globals had
From: Wendell Brown
To: [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 4:01 PM
Subject: Re: [PHP] Variables don't pass... *sniff*
On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote:
>I would've thought that $HTTP_*_VARS will be deprecated sometime in the
>future. It migh
On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote:
>I would've thought that $HTTP_*_VARS will be deprecated sometime in the
>future. It might be an idea to write your own accessor methods, e.g.
>
>function RetrieveGetParameter($parameterValue)
Egads! Wouldn't the following be a little simp
Leif K-Brooks wrote:
To maintain absolute compatibility, just use $HTTP_GET_VARS. It's
availalable in all PHP versions, just deprectaed in versions here $_GET
is available.
I would've thought that $HTTP_*_VARS will be deprecated sometime in the
future. It might be an idea to write your own ac
Blanchard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:47 PM
To: Leif K-Brooks; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Variables don't pass... *sniff*
[snip]
To maintain absolute compatibility, just use $HTTP_GET_VARS. It's
availalable in all PHP vers
e 10 kinds of people - those who know binary and those who don't"
- Original Message -
From: Leif K-Brooks
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:35 PM
Subject: Re: [PHP] Variables don't pass... *sniff*
To maintain absolute compatibil
[snip]
To maintain absolute compatibility, just use $HTTP_GET_VARS. It's
availalable in all PHP versions, just deprectaed in versions here $_GET
is available.
[/snip]
Just to be perfectly clear on this. Let's say that I am writing an
application that I am going to release to the public (for fre
ne?
Again, thanks for the help =)
Daniel
- Original Message -
From: Petre Agenbag
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 12:02 PM
Subject: Re: [PHP] Variables don't pass... *sniff*
Sorry, I missunderstood your question about backwards co
02 PM
Subject: Re: [PHP] Variables don't pass... *sniff*
Sorry, I missunderstood your question about backwards compatible.
YES, accessing your variables this way ($_POST[] etc), IS backwards
compatibel, ie, they are placed in those arrays anyways, BUT, the method
is not backwards com
Maybe they could include a quick "overview" of the latest changes as
well as a link to the on-line manual in your "sign-up" message when
joining the list?
On Wed, 2003-05-28 at 11:46, Chris Hayes wrote:
> Could someone with power over php.net please try to make this change in
> variable handling
s what you wanted? (Not sure I want to, but just to know)
>
> Again, thank you! =)
>
> Daniel
>
>
> - Original Message -
> From: Petre Agenbag
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 11:40 AM
> Subject: Re: [PHP] Variables do
.
> $var1 = $_GET[var1];
> $var2 = $_GET[var2];
> ...if that's what you wanted? (Not sure I want to, but just to know)
>
> Again, thank you! =)
>
> Daniel
>
>
> - Original Message -
> From: Petre Agenbag
> To: [EMAIL
ECTED]
Sent: Wednesday, May 28, 2003 11:46 AM
Subject: Re: [PHP] Variables don't pass... *sniff*
Could someone with power over php.net please try to make this change in
variable handling very extremely clear for downloaders? Make it something
you cannot miss? Not everybody reads release
Sent: Wednesday, May 28, 2003 11:40 AM
Subject: Re: [PHP] Variables don't pass... *sniff*
RegisterGlobals = Off
You need to access these variables by
$_POST[aVariable] or in your case ( adding the variables to the end of a
URL means you are using the GET method: $_GET[aVAriable] etc.
On Wed,
lto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables don't pass... *sniff*
Hi all!
I'm using Apache 2.0.45, PHP 4.3.2RC4, and MySQL 3.23.49 on Windows 2003
Server Standard.
I have a problem passing variables between pages. They simply get l
not being funny ... but, you should read release notes, that's what they are
for
regards
Jonathan
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]
Sent: 28 May 2003 10:46
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variables don't pass... *sniff*
Could someone
Could someone with power over php.net please try to make this change in
variable handling very extremely clear for downloaders? Make it something
you cannot miss? Not everybody reads release notes and readme.txt files.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
RegisterGlobals = Off
You need to access these variables by
$_POST[aVariable] or in your case ( adding the variables to the end of a
URL means you are using the GET method: $_GET[aVAriable] etc.
On Wed, 2003-05-28 at 11:37, [EMAIL PROTECTED] wrote:
> Hi all!
>
> I'm using Apache 2.0.45, PHP 4.
Hi all!
I'm using Apache 2.0.45, PHP 4.3.2RC4, and MySQL 3.23.49 on Windows 2003
Server Standard.
I have a problem passing variables between pages. They simply get lost.
Neither GET nor POST pass values, and even "hardcoding" them into the URL,
like
htpp://localhost/comeon.php?aVariable=ding&an
and how you're using
it.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 8:15 PM
To: [EMAIL PROTECTED]
Cc: [EM
Sent: Tuesday, March 25, 2003 8:15 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] variables??
No, it is more secure. The problem with register_globals is that ALL
variables become global - not just the ones you want to be. Example:
if(something) $authorized = true;
if($authori
No, it is more secure. The problem with register_globals is that ALL
variables become global - not just the ones you want to be. Example:
if(something) $authorized = true;
if($authorized){
...do something requiring security...
}
A hacker could easily go to script.php?authorized=1, and gain acce
> It is considered more secure to declare the variable explicitly.
>
> $var = $_GET["var"];
Ummm... that's the same result as having register_globals on
(basically). You're not helping anything and it's certainly not any more
"secure".
---John W. Holmes...
PHP Architect - A monthly magazine for
It is considered more secure to declare the variable explicitly.
$var = $_GET["var"];
> > I'm having a problem with form data being recognized by a php script.
> > If I send information with a GET the variable data appears in $GET[var]
> > but not $var. >
--
PHP General Mailing List (http://
- Original Message -
From: "Rick Gaine" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 1:25 PM
Subject: [PHP] variables??
>
> I'm having a problem with form data being recognized by a php script.
> If I send information wit
I'm having a problem with form data being recognized by a php script.
If I send information with a GET the variable data appears in $GET[var]
but not $var. I just upgraded to php4.2.2 and then 4.3.1 and I've been
having this problem. I didn't have the problem with older versions. I
suspect it i
Either you use simple quotes for the code ---> '
or you escape the " by using > \"
> $mail->Body = "Heading
hth
--
{Bis bald ° Frederic}
-This is a block of text that can be added to your posts. 72 characters.
--
PHP General Mailing List (http://www.php.
Hi,
just a quick question. How do I include double quotes
in a variable? I am trying to put html code in a
variable in a mailing program:
$mail->Body = "Heading
Please e-mail me at mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]"
I know that you d
Ok, first, is there any difference in respect to memory or CPU speed
between defining a variable with define() and addressing it without a $,
and simply using $var = "whatever".
Second, putting good programming practices aside, what is the cost
in CPU speed for unsetting a variable after
Hello,
I would like to know if in a config file for
example, if it was better to use variables or
constantes ?
Is it a big difference of performance or in
memory used ?
And the same question about the translation of
a site.
I would like to translate my site in many
langages.
So I want to create on
magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
> -Original Message-
> From: Peter Gumbrell [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 23, 2003 7:42 PM
> To: Php-General
> Subject: [PHP] Variables not being received from form
>
> Tha
Thanks to those who have helped me with my two other questions this
afternoon.
In the function below, the update query at the end is inserting empty values
into the database. For some reason the lines:
$rank = $HTTP_POST_VARS['rank'];
$title_new = $HTTP_POST_VARS['titles'];
re not picking up the f
Hi Jason
Man you are great, well indeed I stumbled on my stupidity by putting the
hidden name instead of making it unique I've rectified it.
The reason for passing this variable to the next page is the cats table is
only needed in the first form and the name of the cat is just printed on the
foll
On Sunday 16 February 2003 09:21, Geckodeep wrote:
> My html looks ok.
Are you sure?
> The TEXT variable is $catname and the $rubriqueid is a mistake it is
> actually $catid but it is not that giving the problem. It is an error from
> my part when I posted it.
How are you passing $catname onto
hi Jason
The TEXT variable is $catname and the $rubriqueid is a mistake it is
actually $catid but it is not that giving the problem. It is an error from
my part when I posted it.
My html looks ok.
I should tell you though that this page is on the admin section which is
under a login session scrip
On Sunday 16 February 2003 03:37, Geckodeep wrote:
> I have these forms with one having pull down menu having data coming from a
> table which is working and I have set two variables one for ID and the
> other for the TEXT.
> The problem that I am facing is that when the form is submitted the ID
>
I have these forms with one having pull down menu having data coming from a
table which is working and I have set two variables one for ID and the other
for the TEXT.
The problem that I am facing is that when the form is submitted the ID
variable is well taken into consideration and can see the val
-
> -Original Message-
> From: Benjamin Niemann [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 10, 2003 2:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] how can I use an external 'template' file
> and still use PHP variables?
>
>
>
Check out Smarty:
http://smarty.php.net
it does exactly what you need.
--
Maxim Maletsky
[EMAIL PROTECTED]
"Daevid Vincent" <[EMAIL PROTECTED]> wrote... :
> I've posted this a few weeks ago with no response. I want to use an
> external
> "email template" as it were, so that the sales guys
I agree with Edwin on this one.
What's the <<< for??
Could it be you want to be doing this:
$templatestring = include("/pathto/email_template.php");
$message = "<<" tags
will be considered plain text. Put another way: Even though the "include"
statement in the main document is ALREADY between
"Daevid Vincent" <[EMAIL PROTECTED]> wrote:
> I've posted this a few weeks ago with no response. I want to use an
> external
> "email template" as it were, so that the sales guys can edit it as they
> like and simply shuffle the variables around that they need
> $username and $password (either wit
Subject: [PHP] how can I use an external 'template' file and still use PHP
variables?
> I've posted this a few weeks ago with no response. I want to use an
> external
> "email template" as it were, so that the sales guys can edit it as they
> like and simply
I've posted this a few weeks ago with no response. I want to use an
external
"email template" as it were, so that the sales guys can edit it as they
like and simply shuffle the variables around that they need
$username and $password (either with or without the tags).
I don't want them mucking aro
on 09/01/03 11:52 AM, Stephen ([EMAIL PROTECTED]) wrote:
> Yet another question: How would you make a variable's name the value of
> another variable? For example... Variable 1's value is "joe." I want to make
> the value of variabe one, or joe, the name of variable two which would equal
> somethi
AM
To: PHP List
Subject: [PHP] Variables
Yet another question: How would you make a variable's name the value of
another variable? For example... Variable 1's value is "joe." I want to
make the value of variabe one, or joe, the name of variable two which
would equal som
Yet another question: How would you make a variable's name the
value of another variable? For example... Variable 1's value is "joe." I want to
make the value of variabe one, or joe, the name of variable two which would
equal something else.
Thanks,Stephen Cratonhttp://www.melchior.us
"What
turned on in php.ini.
You can either set the value = on or access posted values by using $_POST or
$HTTP_POST_VARS depending on your version of php.
- Original Message -
From: "David Chamberlin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003
Woops.. sorry I missed the crux of your post. I didn't read all the way
down. :)
-Kevin
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "David Chamberlin" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 200
e.
-Kevin
- Original Message -
From: "David Chamberlin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 12:58 PM
Subject: [PHP] Variables that persist through reload?
> Hey,
>
> I'm somewhat new to PHP and I'm doing a lot
lt;[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 1:58 PM
Subject: [PHP] Variables that persist through reload?
> Hey,
>
> I'm somewhat new to PHP and I'm doing a lot of forms stuff. Looking at
> some of the examples at:
>
> http://www.linuxguruz.org/z.php?id=33
Hey,
I'm somewhat new to PHP and I'm doing a lot of forms stuff. Looking at
some of the examples at:
http://www.linuxguruz.org/z.php?id=33
The variables seem to persist through a reload. For example, the first
demo has:
if (!isset($pick)) {
echo "Fill out and submit the form below.";
I have a similar question/problem. However, I want to use an external
"email template" as it were, so that the sales guys can edit it as they
like and simply shuffle the three variables around that they need
$username, $password, $code (either with or without the tags).
I don't want them mucking
CTED]>
> Cc: "PHP General" <[EMAIL PROTECTED]>
> Sent: Saturday, December 21, 2002 9:50 PM
> Subject: Re: [PHP] Forms and PHP variables
>
>
> >
> > Use is_numeric()
> >
> > http://www.php.net/is_numeric
> >
> > See also the ctyp
On Sunday 22 December 2002 10:29, Beauford.2002 wrote:
> Hi,
>
> First off, thanks to all those that helped out with my other questions. Not
> all my problems were solved, but I'm certainly closer. Still working on the
> same project I need to do the following.
>
> I have a form where users input n
Olson" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Saturday, December 21, 2002 9:50 PM
Subject: Re: [PHP] Forms and PHP variables
>
> Use is_numeric()
>
> http://www.php.net/is_numeri
Use is_numeric()
http://www.php.net/is_numeric
See also the ctype functions which can
be read about here:
http://www.php.net/ctype
And yes, regular expressions are another
option but aren't needed here.
Regards,
Philip Olson
On Sat, 21 Dec 2002, Beauford.2002 wrote:
> Hi,
>
> First of
Hi,
First off, thanks to all those that helped out with my other questions. Not
all my problems were solved, but I'm certainly closer. Still working on the
same project I need to do the following.
I have a form where users input numbers only, is there a way I can have php
check to make sure a let
ecember 17, 2002 1:29 PM
Subject: [PHP] Variables - Help
> Hi,
>
> I have a webpage where users input information. This gets sent to a PHP
page
> to use this input. The first time the user inputs information it works
> correctly, but the second, third, forth, etc. times does not. I
Hi,
I have a webpage where users input information. This gets sent to a PHP page
to use this input. The first time the user inputs information it works
correctly, but the second, third, forth, etc. times does not. It appears the
information from the first time is still stored in the variables I am
"Marco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 9:30 AM
Subject: [PHP] Variables problem
> Hi All,
>
> I'm a newbie and try to learn a little php, so a searched the internet for
> documentation and wow...find a real
If you have globals on, then I see your problem. Rename $totalqty to
something else
- Original Message -
From: "Marco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 4:30 AM
Subject: [PHP] Variables problem
> Hi All,
>
>
Hi All,
I'm a newbie and try to learn a little php, so a searched the internet for
documentation and wow...find a real course.
Fanatic I typed the code below and ..yes the first part of my form works
fine:
My first orderform...looks cool, works fine
Orderform.html
**
Are you saying this is coming from a form entry?
If so and you have PHP > 4.1 then use:
$_GET['chp1'] OR $_POST['chp1']
Depends if it is get or post data!!
If you have pre 4.1 use the var name eg. $chp1 etc etc
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
If you need PHP hosting with an exp
Hi all,
I have a page (to create a database) with X text fields called chpX (chp0,
chp1, chp2..Etc) that posts these variables to a php file.
I would like to know how can i get these values ? (I have also the $i
variable that tells me what is the max X)
Thanks,
Hacook
--
PHP General Mailing Li
Uh, no. Your problem is obvious:
$sql = "SELECT *
FROM users
WHERE username='$_SERVER["PHP_AUTH_USER"]' and
password='$_SERVER["PHP_AUTH_PW"]'";
You have double-quotes inside a double-quoted string.
Like I said, don't use quotes around the array index inside
At 15:28 10.11.2002, Ray Seals said:
[snip]
>Parse error: parse error, expecting 'T_STRNG' or 'T_VARIABLE' or
>'T_NUM_STRING' in on line 33.
>
>Here is the script that is doing this:
>
> [...]
>
>$sql = "SELECT *
>FROM users
>
201 - 300 of 491 matches
Mail list logo