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 8296107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:51:26+00:00 2026-06-08T14:51:26+00:00

I know I can send a custom field using IPN with $_POST[‘custom’] But can

  • 0

I know I can send a custom field using IPN with $_POST[‘custom’]
But can I do that with an uploaded file? More specifically an uploaded image?

And what if I have two custom fields? I previously used something like this:

<input type="hidden" name="custom" value="<?php echo $a.'|'.$b ?>"/>

But that was just text! Now I want to upload a file and I also have custom text, then I want to get it.

Is this possible and how would that look like?

Thanks!

  • 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-06-08T14:51:27+00:00Added an answer on June 8, 2026 at 2:51 pm

    I don’t think it’s possible to do it the way you’re describing, but here’s an alternative that I have used in the past.

    1. Instead of having the form that contains the file upload post to PayPal, have it post to your site, and then store that uploaded file and any other custom data in a database (or any other way you choose to store it). Assign that data an id.

    2. Now redirect the user to a page that contains basically the same form, except that the input fields should be hidden, and the form will post to PayPal. Fill in that form programmatically with the data from the previous post, and fill the ‘custom’ field with the id that you assigned to the custom data. This page would also contain a JavaScript statement like this (at the bottom after the form, to ensure that it doesn’t execute until the form is loaded)…

      <script type="text/javascript">
          document.forms["paypalform"].submit();
      </script>
      

      …to automatically submit the form when the page is loaded. It’s still a good idea to leave a submit button (you could style it as a link, if you want) in case the user has JavaScript disabled. It could say something like “Click here if you are not redirected to PayPal within 10 seconds.” You could also add another message on the page such as “Redirecting to PayPal.”

    3. Now when you get your PDT or IPN information back from PayPal for that transaction, the ‘custom’ field will contain the id you assigned to the data earlier. It’s just a matter of retrieving the data from wherever you stored it.

    I’ve done this in ASP.NET before, and I assume it would work just as well in PHP (the server-side parts), but I can’t say for sure.

    Note: The ‘custom’ field can only contain up to 256 characters.

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

Sidebar

Related Questions

I have a query that I know can be done using a subselect, but
I know that soap can send XML over http, is there any way to
when I send message as client using quickfix, how can I know if it's
How can I set a custom Host header in HttpWebRequest? I know that normally
I would like to know if someone knows why I can't send sms with
Sometimes, I'll end up having to catch an exception that I know can never
You can know if the event stack is empty calling the gtk.events_pending() method, but
I need to send an e-mail from my custom php code using the Drupal
Could someone tell me please how I can create a custom converter I know
How can I send a custom response upon a custom request on a xampp/wamp

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.