isset always returns 0
i create dynamic textbox called quantity0, textbox1, textbox3...
then i a, trying to get the content of the textbox but it is always 0.
as you can see, i tried the suggestions but it still dont work.
is there something iam doing wroing? why is the textbox always 0?
On Sat, April 29, 2006 5:42 am, Smart Software wrote:
> code below shows all records from products table with an textbox and
> an
> order button for each record
> How can i add the content of the textbox?
> i tried this:
> ?>">
>
> but all i get is an error telling me there is a undefined varabl
> 2006/4/29, Smart Software <[EMAIL PROTECTED]>:
> How can i add the content of the textbox?
> i tried this:
> ?>">
>
> but all i get is an error telling me there is a undefined varable
It looks like you're trying to get at $quantity, but have you pulled
it from the submitted form yet? If you
2006/4/29, Smart Software <[EMAIL PROTECTED]>:
code below shows all records from products table with an textbox and an
order button for each record
">
if someone presses the button, an item will be ordered.
How can i add the content of the textbox?
i tried this:
">
but all
It was my error reporting.forgot I replaced my ini file.
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ross Hulford wrote:
>> I have a porblem with undefined variables on loacalhost. Any ideas why? I
>> have turned registed variables on.
>>
>>
>> R.
>
> Without s
On Mon, 29 Nov 2004 17:11:47 -, Ross Hulford <[EMAIL PROTECTED]> wrote:
> I have a porblem with undefined variables on loacalhost. Any ideas why? I
> have turned registed variables on.
Where's the code?
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
Ross Hulford wrote:
I have a porblem with undefined variables on loacalhost. Any ideas why? I
have turned registed variables on.
R.
Without seeing any code, I'm going to guess that you haven't defined a
variable before trying to use it. Wanna make it go away? Turn off
'notices' in your error
That seems to have corrected the problem. Thank you very much.
On 12/10/03 11:56 AM, "Richard Davey" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Wednesday, December 10, 2003, 4:53:18 PM, you wrote:
>
> P> I can retrieve email from the email account, but when I click on a link in
> P> the email.p
Hello,
Wednesday, December 10, 2003, 4:53:18 PM, you wrote:
P> I can retrieve email from the email account, but when I click on a link in
P> the email.php to open the email in body.php, $msgid is not defined in
P> body.php. It's got to be something basic, but right now, it escapes me.
P> Right n
did you solve this problem? i checked the coding in my linux
box, it's working fine.
Viraj
Chris Kay wrote:
>
> You seem confused with POST & GET, instead of using _POST to retrieve
> values from the form, you use $senders_name, and further down you set
> $_POST["msg"], which will only be used i
You seem confused with POST & GET, instead of using _POST to retrieve
values from the form, you use $senders_name, and further down you set
$_POST["msg"], which will only be used in the same php code on the same
page
Try
$msg = "Sender's Full Name:\t" . $_POST['sender_name'] . "\n";
$msg .="Sen
* Thus wrote Ryan A ([EMAIL PROTECTED]):
>
> Notice: Undefined variable: email1 in c:\phpdev\www\bwh\project\compare.php
> on line 117
> [...]
>
>$m = 1;
>while ($line = mysql_fetch_assoc($rs)) { //dumping into an array
> foreach ($line as $field => $value) {
> $tmp = $field.$m;
IT WORKS!!!
Thanks for replying and the solution.
Cheers,
-Ryan
Hello,
This is a reply to an e-mail that you wrote on Fri, 1 Aug 2003 at
14:47, lines prefixed by '>' were originally written by you.
> Notice: Undefined variable: email1 in
> c:phpdevwwwbwhprojectcompare.php
> on line 117
> $$tmp
Hello
This is the code:
$m = 1;
while ($line = mysql_fetch_assoc($rs)) { //dumping into an array
foreach ($line as $field => $value) {
$tmp = $field.$m;
$$tmp.= $value; /* This is the error line 117*** */
}
$m++;
}
This is basically so that i can use the a
Hello,
This is a reply to an e-mail that you wrote on Fri, 1 Aug 2003 at
14:47, lines prefixed by '>' were originally written by you.
> Notice: Undefined variable: email1 in
> c:phpdevwwwbwhprojectcompare.php
> on line 117
> $$tmp.= $value; /* This is the error line 117*** */
You a
> -Original Message-
> From: Ryan M [mailto:[EMAIL PROTECTED]
> Sent: 11 June 2003 20:22
>
> Thanks for the advice... The link worked Now it is saying this:
>
> Notice: Undefined index: action in
>
> It only says this if there is no action...it goes away once I
> click the link
On Wed, 2003-06-11 at 13:40, Mark wrote:
> Or you can simply turn off NOTICE error reporting in the php.ini file
> or use ini_set or error_reporting() to not include notices. This
> should not affect functionality.
That's not a good idea; it's treating the symptom, not the problem. A
better idea
Or you can simply turn off NOTICE error reporting in the php.ini file
or use ini_set or error_reporting() to not include notices. This
should not affect functionality.
--- Lars Torben Wilson <[EMAIL PROTECTED]> wrote:
> On Wed, 2003-06-11 at 12:22, Ryan M wrote:
> > Thanks for the advice... The
On Wed, 2003-06-11 at 12:22, Ryan M wrote:
> Thanks for the advice... The link worked Now it is saying this:
>
> Notice: Undefined index: action in
>
> It only says this if there is no action...it goes away once I click the link
> and the action=someaction Is there a way to fix my php
[snip]
Thanks for the advice... The link worked Now it is saying this:
Notice: Undefined index: action in
It only says this if there is no action...it goes away once I click the
link and the action=someaction Is there a way to fix my php so that
I dont have to change all of the web si
Thanks for the advice... The link worked Now it is saying this:
Notice: Undefined index: action in
It only says this if there is no action...it goes away once I click the link
and the action=someaction Is there a way to fix my php so that I dont
have to change all of the web sites hos
[snip]
Hows it goin?? Im pretty new to this, so I have a pretty simple
question. I am running an apache server with php 4 on a win 2k machine.
When I try to do something like this: Some Action";
if ($action == "someaction") {
echo "Anything";
}
?>
It says: Notice: Undefined variable: action in ..
or give error_reporting(0); in the start of the file
"Joseph W. Goff" <[EMAIL PROTECTED]> wrote in message
002601c2b803$26a67110$bdcaa8c0@jg42000">news:002601c2b803$26a67110$bdcaa8c0@jg42000...
> In the php.ini file set error reporting to E_ALL & ~E_NOTICE
>
> - Original Message -
> From:
In the php.ini file set error reporting to E_ALL & ~E_NOTICE
- Original Message -
From: "Borut Kovacec" <[EMAIL PROTECTED]>
To: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, January 09, 2003 9:57 AM
Subject: [PHP] undefined variable notice - how to furn of
Hi
I just installed n
Borut,
I had this problem myself just before Christmas.
The following solution was proposed:
>> All of the PHP scripts hosted on a Linux server
>> I'm working with have suddenly begun producing
>> an error message:
>>
>> undefined variable 'variablename'
> Looks like someone's tweaked th
ks to everybody else who responded to this query.
Michael Egan
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 10:39
To: Michael Egan; PHP General (E-mail)
Subject: RE: [PHP] Undefined variable error message[Scanned]
Hi Michael,
> All of the PHP
Hmm, yes. Why did I not think of error reporting at E_ALL?
Chris Hewitt wrote:
Michael Egan wrote:
All of the PHP scripts hosted on a Linux server I'm working with have
suddenly begun producing an error message:
undefined variable 'variablename'
Has the code been working on a different
Michael Egan wrote:
All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message:
undefined variable 'variablename'
Has the code been working on a different server with an earlier version
of PHP (or this server upgraded)? It sounds as though
Hi Michael,
> All of the PHP scripts hosted on a Linux server
> I'm working with have suddenly begun producing
> an error message:
>
> undefined variable 'variablename'
Looks like someone's tweaked the error reporting level so it's on E_ALL,
which can be a somewhat alarmist setting :-)
R
http://www.php.net/manual/en/function.error-reporting.php
At 10:31 18-12-02 +, Michael Egan wrote:
All of the PHP scripts hosted on a Linux server I'm working with have
suddenly begun producing an error message:
undefined variable 'variablename'
This occurs wherever a variable name
Marco Tabini <[EMAIL PROTECTED]> wrote in message:
> Hey Anthony--
>
> It's definitely a register_globals problem. Your ISP has turned it off
> because it's generally considered a significant security risk.
>
> The best way to solve it is to use the superglobal $_POST to access your
> post data. In
Hey Anthony--
It's definitely a register_globals problem. Your ISP has turned it off
because it's generally considered a significant security risk.
The best way to solve it is to use the superglobal $_POST to access your
post data. In your PHP script, change all the variables that you take
from t
>"Marco Tabini <[EMAIL PROTECTED]> wrote in message:
> Best guess, your local server has register_globals on and your ISP
> doesn't. However, without seeing your code it's going to be difficult to
> tell for sure! :-)
>
>
> Marco
Thanks for the
Best guess, your local server has register_globals on and your ISP
doesn't. However, without seeing your code it's going to be difficult to
tell for sure! :-)
Marco
--
php|architect - The Magazine for PHP Professionals
The monthly magazine dedicated to the world of PHP programming
> I'm migrating to PHP from ColdFusion.
>
> I've been running some sample scripts I have found in various places
and
> all
> of them throw an error:
>
> Notice: Undefined variable: in
> c:\inetpub\wwwroot\myphpcalendar\ on line .
>
> In ColdFusion, I can use the tag to preset a variable. I've
Try using $_POST['name'] or $_GET['name'].
E.g.:
Regards,
Daniel Kushner
_
Need hosting? http://thehostingcompany.us
-Original Message-
From: Muhammad Khairuzzaman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 8:22 AM
To: [EM
Hkan wrote:
>I just reinstalled the system and everything on my computer, and thought I
>should get the latest versions of apache, php and mysql, and now I get this
>message everywhere on my pages.. hehe.. :P
>how do I "define variables" ?
>
If you have reinstalled with latest versions, maybe you
$_SERVER['PHP_SELF'] when globals are off.
>How about this:
>
>
>
>- Vic
>
>
>-Original Message-
>From: Manuel Ochoa [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, August 15, 2002 7:20 PM
>To: PHP General
>Subject: [PHP] Undefined variable: PHP_SELF
>
>
>I keep getting "Undefined variable:
How about this:
- Vic
-Original Message-
From: Manuel Ochoa [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 7:20 PM
To: PHP General
Subject: [PHP] Undefined variable: PHP_SELF
I keep getting "Undefined variable: PHP_SELF" when using the following:
Global variables are
Try $_SERVER['PHP_SELF'] instead of $PHP_SELF
At 04:19 PM 8/15/2002 -0700, you wrote:
>I keep getting "Undefined variable: PHP_SELF" when using the following:
>
>
>
>Global variables are off... What am I doing wrong?
Jadiel Flores
-
http://www.abargon.com
[EMAIL PROTECTE
> I keep getting "Undefined variable: PHP_SELF" when using the
> following:
>
>
>
> Global variables are off... What am I doing wrong?
In current versions of PHP, $PHP_SELF is available if globals are on.
You'll need $_SERVER['PHP_SELF'] instead if you're keeping globals off.
CYA, Dav
Good day.
What is this message that you get, that you don't want?
A cursory glance of the code reveals two "else" statements attached to the
same "if" statement. You should address that.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue
This should work ...
if ( IsSet($id) ) {
.
sql statement
}else{
.
}
- Original Message -
From: "Tshering Norbu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 12:22 PM
Subject: [PHP] Undefined variable
> Dear list,
>
> I test the followi
it's a warning, not an error...
you should check if it is set before you use it :
If(IsSet($id)) {
Do something...
}
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Tshering Norbu [mailto:[EMAIL
Most likely it has to do with your error_reporting setting. See :
http://uk.php.net/manual/en/phpdevel-errors.php#internal.e-notice
http://uk.php.net/manual/en/features.error-handling.php
Level E_NOTICE produces Warnings such as "Undefined Variable", so, doing
the following :
echo $ia
Hi Uchendu!
Yes, this is very possible! Here are a few things that come to mind.
There are of course many ways to do this :
To check the existance of a variable, consider isset() as it checks for
the existance of a variable :
if (isset($HTTP_GET_VARS['images']))
Maybe set some default val
On Mon, 27 Aug 2001 02:59, Wolfgang Schneider wrote:
> Hi everybody,
> can someone have a look at this bit of code please and help me out?
> I am getting an error message when calling a php page containing the
> code below, and the message reads:
>
> "Warning: Undefined index: view in
> c:/bibelce
On Sun, 18 Mar 2001 00:13, Jorge Alvarez wrote:
> Hi there,
>
> I get this error every time I try to use a variable that has not been
> declared. Is this new to PHP4? I do not recall this error in the past,
> echo $MYVAR echoed nothing if $MYVAR was not set but no error was
> raised.
>
> How can I
try setting error_reporting(0) in PHP.ini
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Dundee (Roland) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 04, 2001 5:35 AM
To:
"Dundee (Roland)" <[EMAIL PROTECTED]> wrote:
> When creating a page(php) on Win2000 I get alot of 'Undefined variable'
> error messages, but there are no errors at all running the same page on a
> apache server.
Is the variable a user defined variable? If so, my guess is the error
reporting leve
50 matches
Mail list logo