About
Pricing
Community
Teams
Start Free Trial
Log in
jonofat
asked on
3/6/2011
PHP Notice: Undefined index
Okay, I have the following:
<?php
$rqty = $_POST['rqty'];
$unitprice = $_POST['iprice'];
$rtotal = $rqty*$unitprice;
echo $rtotal;?>
I get the error however:
PHP Notice: Undefined index: iprice
Not sure what this means as $rtotal is displaying and is correct.
PHP
7
4
Last Comment
adeelshahid
8/22/2022 - Mon
Lukasz Chmielewski
3/6/2011
This is just a notice, not an error.
ASKER CERTIFIED SOLUTION
Lukasz Chmielewski
3/6/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jonofat
3/6/2011
ASKER
How do I get rid of it cos the page isn't going to the next page as it is meant to, it just shows that notice and stays there.
jonofat
3/6/2011
ASKER
never mind, I read the url you sent me. I used <?php error_reporting(E_ALL ^ E_NOTICE);?>
Is that okay?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
SOLUTION
nickswanjan
3/6/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Lukasz Chmielewski
3/6/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
adeelshahid
3/7/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.