Re: IPN error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, April 29, 2006 3:53 am, suresh kumar wrote:
>              <input type="hidden" name="item_name"
> value="Subscribe to Additional User Account Yearly">

> my page code to  process paypal
> ------------------------------
> <?
>
> // read the post from PayPal system and add 'cmd'
> $req = 'cmd=_notify-validate';
>
> foreach ($_POST as $key => $value) {
>   $value = urlencode(stripslashes($value));
> $req .= "&$key=$value";

echo "$key => $value<br />\n";

> }
>
> $item_name = $_POST['item_name'];

$item_name = isset($_POST['item_name']) ? $_POST['item_name'] : '';


>  Undefined index:item_name

The $_POST data is not filled in, either because this is your FIRST
visit to the page, or because something is not doing a POST request
the way you think it should be.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux