how to read returned response variables...

Last post 01-25-2008 8:10 PM by mmania. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-25-2008 4:21 PM

    • mmania
    • Top 10 Contributor
    • Joined on 01-20-2008
    • Netherlands
    • Posts 91

    how to read returned response variables...

    this might be silly, but it's  the first time I see this and Ican't figure it out...

     when I do an upload the system will reply the result, but I can't seem to be able to read the variables from the URL

    NVX.returnCode=70004&NVX.errorMessage=The%20path%20already%20exists.

    it seems to be something with the . (dot)

    if I take out the dot I can easily read the variable out of the $_GET 

     any idea?

     thanks in advance

    ciao Luca 

    Filed under:
  • 01-25-2008 6:46 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 602

    Re: how to read returned response variables...

     In PHP '.' is treated as an '_' in variables.  To retrieve these variables you need to do:

    $_REQUEST['NVX_errorMessage'];

    or

    $_GET['NVX_errorMessage'];

    This is because in PHP the . is not a valid character in a variable name and the inbound parameters are converted into variables.

    Regards,
        Barry R.
     

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 01-25-2008 8:10 PM In reply to

    • mmania
    • Top 10 Contributor
    • Joined on 01-20-2008
    • Netherlands
    • Posts 91

    Re: how to read returned response variables...

     thanks!!

Page 1 of 1 (3 items)