Customer Portal

Get Involved. Join the Conversation.

Topic

    Patricia Harvath
    How to POST variables from external site?Answered
    Topic posted April 20, 2012 by Patricia HarvathBronze Medal: 1,250+ Points 
    332 Views, 5 Comments
    Title:
    How to POST variables from external site?
    Content:

    Hi,

    We'd like to send first name, last name, email address and our customer number from the home site to the custhelp site through a POST.  I know this is possible by sending the variables in the URL, but since this is sensitive information, we don't want the variables in the URL for security reasons.  For example, what happens if someone bookmarks the landing page even if the parms are encrpyted?

    Does anyone know if there is a way to POST variables to a RN page where I can grab them as a session variable. We aren't going to log anyone 'in', but rather if they post a question, we don't want them to have to fill out a form with information they've already given the home site.  I should be able to populate the fields of the email or chat form with the session variables.

    Is this possible?  If so, an example of this would be huge or even a link to some documentation would help. 

    Thanks,
    Patricia

     

     

     

    Version:
    We're on Nov 2010.

    Best Comment

    Ernie Turner

    Also, if I'm understanding you correctly, it doesn't sound like what you're trying to do is possible. You cannot POST data from one site to another (i.e. from your main site to the CP site). This is a general browser restriction and not something specific to CP. 

    Comment

     

    • Jeremy Watson

      From a custom controller, you can access POST data with $this->input->post('data').  From a custom widget's controller, you can use $this->CI->input->post('data').

      Does that help?

      James

    • Ernie Turner

      Also, if I'm understanding you correctly, it doesn't sound like what you're trying to do is possible. You cannot POST data from one site to another (i.e. from your main site to the CP site). This is a general browser restriction and not something specific to CP. 

    • Patricia Harvath

      Hi Ernie,


      I didn't think it was possible without a crossdomain file posted to the server root, but I saw a post (https://cloudcustomerconnect.oracle.com/posts/c14f252274) that gave me the impression you could do this in CP.


      Thanks for the confirmation.  I can stop trying to figure this out!


      Patricia


       


       

    • Dietrik

      Encode your parameters with some kind of timestamp.

    • Pathaksa Tongpitak

      You cannot POST variables cross domain using JavaScript, however, what you can do is automatically submit a form which has a target attribuut filled with the name of an IFRAME. This iframe can be made hidden or just small with a blank background color or a color matching your website.