Problem with PayPal payment form


Can somebody help me. This form works, and redirects the user to paypal payment. But i want the user to be redirectet to my "thank you page" after the payment is accepted:

<form action="" method="post" target="_self" id="PayPalForm">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="tax_cart" value="00.25">
<input type="hidden" name="business" value="">
<input type="hidden" name="cancel_return" value="">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="">
<input type="hidden" name="invoice" value="4601">

<input type="hidden" name="country" value="DK">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="currency_code" value="DKK">
<input type="hidden" name="handling_cart" value="1">

<input type="hidden" name="item_name_1" value="test produkt 1">
<input type="hidden" name="amount_1" value="1.00">
<input type="hidden" name="quantity_1" value="1">
<input type="hidden" name="tax_1" value="00.25">

<input type="submit" />
Jesper ChristensenProgrammerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott MadeiraCommented:
Change your field name from return to return_url


set the URL in your PayPal acount configuration.

Also make sure that this function is turned on in your PayPal account configuration.
Scott MadeiraCommented:
Forgive me, the variable name is return and not return_url.  Do, however, make sure you have auto return configured in your PayPal account for thsi function to work.
Jesper ChristensenProgrammerAuthor Commented:
I can´t find the auto return in my acount :( Has spent hours looking. Can you give me a hint?
Scott MadeiraCommented:
Login, choose profile and then "My Selling Tools" from the left navigation. In teh selling Online section choose to update Website Preferences.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jesper ChristensenProgrammerAuthor Commented:
Thank you !! you saved my weekend.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.