Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Help Passing FORM field variables across 2 domains

    Hi Everyone,

    Thanks in advance for helping me with this small issue:

    I have an optin form page on http://domain1.com/optin.php

    On this page, here is the following form code:
    -----------------------------------------------
    <form name="form1" method="post" action="https://www.mcssl.com/app/contactsave.asp">
    <input name="merchantid" type="hidden" id="merchantid" value="123456">
    <input name="ARThankyouURL" type="hidden" id="ARThankyouURL" value="http://www.domain1.com/confirmed.php">
    <input name="copyarresponse" type="hidden" id="copyarresponse" value="0">
    <input name="custom" type="hidden" id="custom" value="0">
    <input name="defaultar" type="hidden" id="defaultar" value="12345">
    <input name="allowmulti" type="hidden" id="allowmulti" value="0">
    <input name="visiblefields" type="hidden" id="visiblefields" value="Name,Email1">
    <input name="requiredfields" type="hidden" id="requiredfields" value="Name,Email1">
    <input name="cmdSubmit" type="image" title="cmdSubmit" src="images/submitbutton.gif" >
    </form>
    -----------------------------------------------

    I am using 1ShoppingCart's autoresponder.

    Here's what I'm trying to accomplish but not sure how to do it, and could really use some of your expertise.

    On my confirmation page at: http://domain1.com/confirmed.php

    I want to be able to display the Name and Email1 form field variables on that page as follows, from the input values on the optin.php page.

    "You are now subscribed to My Newsletter with your details below: Name, Email1"

    So here's the current process that you can see from above.

    After the visitors enters their name and email on my optin form from the entry page(www.domain1.com/optin.php), they will be
    processed through 1ShoppingCart's autoresponder system action script (https://www.mcssl.com/app/contactsave.asp).

    That means that the visitor leaves the domain1.com site momentarily, while passed through www.mcssl.com before
    they are redirected back to www.domain1.com/confirmed.php.

    How can I get the form field variables "Name" and "Email1" to pass all the way through to the www.domain1.com/confirmed.php page so that I can display the original input data on screen?


    Thanks guys!

  • #2
    Regular Coder devinemke's Avatar
    Join Date
    Dec 2004
    Location
    NYC
    Posts
    443
    Thanks
    0
    Thanked 12 Times in 11 Posts
    do you have any control over the https://www.mcssl.com/app/contactsave.asp script? if so add whatever hidden form fields you want. it appears to be a hosted cart system. i assume they let you add whatever custom fields you wish, right?

  • #3
    New to the CF scene
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Devinemke,

    The problem is that I don't have control over the intermediary script. Otherwise, your suggestion would have been the best route to take.

    Thanks anyway.

    Do you have any other ideas?

  • #4
    New to the CF scene
    Join Date
    May 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did you ever get anywhere with this? I've been trying to pass a custom variable to their cart and then get it back after the sale is complete, but I'm thinking I will have the same problem you did.

    I know they support custom fields, and I know I can add javascript to the head tag on the pages, so theoretically, this is possible. I just don't know how to proceed.

    Basically, all I want to do is send one of my users there with their ID on my system, have the cart process the payment and go to my thank you page with the same user ID I sent them attached. Shouldn't be difficult, but no one at this company can tell me anything about it.

  • #5
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to pass custom variables in 1ShoppingCart?

    How to pass custom variables like user id , user name on view cart page and get back value on Thank You page in 1ShoppingCart?

    Note : My application is in asp.net.

    I really appreciate your help.

    Thank You.
    Last edited by vatsalit; 02-25-2010 at 08:52 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •