Announcement

Collapse
No announcement yet.

Getting NETQUOTEVAR data into php script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting NETQUOTEVAR data into php script

    Can anyone help?
    I am trying to get NETQUOTEVAR:INVOICENAME & NETQUOTEVAR:INVOICEPOSTCODE data from the receipt form Order Phase 4 into a php script running as NETQUOTEVAR:INCLUDE database-test.php inserted towards the end of Order Phase 4.

    Any clues please, losing many brain cells trying!!!!!!
    Ray

    #2
    Pass them as arguments to the PHP script call.

    database-test.php?iname=NETQUOTEVAR:INVOICENAME&pcode=NETQUOTEVAR:INVOICEPOSTCODE

    and use PHP's $_REQUEST['iname'] to get them.

    You may need some JavaScript to escape these fields as they may contain data that cannot be posted as-is.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Getting NETQUOTEVAR data into php script

      Many thanks Norman, if anyone had the answer I would have guesssed it was you!

      Not sure how to escape the fields in javascript, but I am sure you do.
      Last bit of help hopefully, all gratefully accepted.

      Ray

      Comment


        #4
        You'd have to do something like
        Code:
        <script type="text/javascript">
        <!--
        document.write('<a href="mycode.php' 
                     + '?iname='  + escape('NETQUOTEVAR:INVOICENAME') 
                     + '&pcode=' + escape('NETQUOTEVAR:INVOICEPOSTCODE')
                     + '">Click Here</a>');
        //-->
        </script>
        This (untested) example is for a clickable link. You'll have to change it for your include or whatever.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X