close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Store information based on checkmark checked

Thread began 10/08/2009 10:14 am by stodan1378060 | Last modified 10/13/2009 4:08 pm by Eric Mittman | 2271 views | 3 replies |

stodan1378060

Redirect based on cookie - checkbox

Scenario:

Surfer goes to paypal signup page. On that page there are three options (extra offers) to choose from, each option has a checkbox next to it.

Surfer selects one of the check boxes, then pays via paypal.

Success Page should then redirect to page based on what check mark was clicked on signup page.

Is this possible with cookies? That they carry the info to another page, then based on what cookie., the page redirects to or diplays the correct offer page. (based on check mark selection).

If yes how to go about this with cookies toolkit. That the success page would redirect but somehow it would have to read the cookie on body onload, not sure how to do this.....

grateful for any help...

Sign in to reply to this post

Eric Mittman

I think that a little more clarification about the process you wish to implement would help us on the forum to better determine the correct way to go for you.

I'm just not very clear on the PayPal signup page part. Normally you would offer some product or service for sale on your site and the user would add it to their cart then proceed to checkout. Whatever options you make available will be selected before the user add the item to the cart.

It sounds like you would like to just adjust the return page that they are sent back to by PayPal based on these options for the product, is this correct?

Also, are you using Payments Standard or Pro? How you pass along info differs in these two implementations.

Sign in to reply to this post

stodan1378060

Let me try to explain better:

I need code that knows how to store information in a cookie that will pass the information from one page to another.

The cookie would have to remember which check mark was checked, and then show the right page after paypal success page.
Paypal using standard paypal option.

Same as here showthread.php?t=4594 but with three checkmarks(three different options..and three different redirects) not just one.

Sign in to reply to this post

Eric Mittman

Normally with a PayPal standard implementation you specify the return page in this form element:

<input type="hidden" name="return" id="return" value="" />

You put in the URL of the page you would like the user to go to on return.

To get something in place like you are talking about you can use some client side js to populate the return field with the appropriate URL based on the user selection. The problem with the scenario you have described is using a checkbox, this is a problem since the user can check all three boxes and you only can have a single value for this element in the end.

Instead of a group of checkbox's you should use a radio group, this way the user can only select one. For the value of the radio group entries you can have the three different URL's. Then add in an onchange event that will make the value of the selected radio option the return hidden form element's value. This would result in have a page where the user can choose an option, then based on this option they have selected they are taken to a different page on return.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...