Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7679315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:50:59+00:00 2026-05-31T17:50:59+00:00

hi there Iam creating a Paypal IPN and i have a pay now button

  • 0

hi there Iam creating a Paypal IPN and i have a pay now button in my cart page which is of type image. Im used to using type submit. i was just wondering how i would write to my database on the submition of this pay now button. what i mean is i want to write to the database as this button is clicked but im not sure exactly how to do it? here is my code for sending my data to paypal.

<?php


 if(isset($_SESSION['username']) && isset($_SESSION['itemnames']))
   {
   $checkoutbutton .='<form action="https://www.sandbox.paypal.com/cgibin/webscr"     method="post">
     <input type="hidden" name="cmd" value="_cart">
     <input type="hidden" name="business" value="xxxxxx">
     <input type="hidden" name="upload" value="1">';

  ?> <ul2>

   <?php


  for ($i = 0;$i <count($_SESSION['itemnames']);$i++)
     { ?>
          <li>

         <?php
         $x = $i + 1;
        echo "<h3>";
        echo $_SESSION['itemnames'][$i];   
        echo "</h3>";
        echo "<b>Cost per Item:  &euro;" .$_SESSION['price'][$i] ."</br> Number of Items: " . $_SESSION['quantity'][$i] ."</b>";


        $checkoutbutton .='<input type="hidden" name="item_name_'.$x.'" value="'. $_SESSION['itemnames'][$i] .'">  
        <input type="hidden" name="amount_'.$x.'" value="' .$_SESSION['price'][$i] . '">
        <input type="hidden" name="quantity_'.$x.'" value="' .$_SESSION['quantity'][$i] . '">';
          ?>

         </li>
         <?php }      $checkoutbutton .='<input type="hidden" name="notify_url" value="http://ipnscript.php">
                                         <input type="hidden" name="return" value="http://ranscomplete.php">
                                         <input type="hidden" name="rm" value="2">
                                         <input type="hidden" name="cbt" value="return to store">
                                         <input type="hidden" name="cancel_return" value="http://www.theislandapp.com/transcancelled.php">
                                         <input type="hidden" name="currency_code" value="EUR">
                       <input type="image" src="x-click-but5.gif" name="submit" alt="Make payments with PayPal - its fast, free and secure!">';

          ?>   

          </ul2> 


               <?php }

              else {?>
              <h2> No Items in cart </h2>
            <?php } ?> </br></br>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:51:00+00:00Added an answer on May 31, 2026 at 5:51 pm

    You’ll need to add a step before heading to PayPal. Basically your cart would POST to another script on your site, which would log whatever info you need, and then you can loop through your cart and send things over to PayPal via a GET string on the URL. I believe the variables are the same, plus you can even get their name and address info to store on your side beforehand.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I going to be creating a membership site where you have to pay (PayPal)
I am creating an user registration form using jsp,in which there is an option
I have PayPal Premier account already integrating cart upload with encrypted parameters and it
I am creating a web site and having a paypal checkout button. The site
I have a question for any JBoss Seam developers out there: I am creating
I am creating an ipad and iphone (Universal App). I have implemented Paypal in
I am creating a Delphi service. Is there any way to use controls derived
I am creating a clock-in / clock-out system for employees. There is a tbl_clockins
I am creating a C# windows application to create an Excel 2003 sheet. There
I am creating windows installer project using Visual Studio 2005. Is there an option

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.