Announcement

Collapse
No announcement yet.

SC8 and HTML - battling please help

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

  • SC8 and HTML - battling please help

    Please can someone help me here, battling.
    • I have x2 apps.
      • Geo1 and Geo2
    • Geo1 primarily has HTML code in it which calls Geo2, by placing the html code in a variable (say $var1) and doing an echo $var1
    • Geo2 is all PHP, and gives me the variable $address, and when echo $address is placed in Geo2, the address is shown
    • When I run Geo1 it works perfectly.

    My challenge is how do I get $address that displayed the correct answer in Geo2 after the "echo" command in Geo1 (echo $var1) ?

  • #2
    Set it as a global variable
    Help file shows the how to

    Comment


    • #3
      I have tried that unfortunately it comes back empty when trying to echo it in Geo1, yet when echo'ed in Geo2 it shows a value.

      Comment


      • #4
        Don't understand the problem, what do you want?, the value of $address on Geo1?
        /Giuseppe

        Professional Scriptcase Services
        Some Customers opinions

        Comment


        • #5
          Hi Guiseppe -
          The value of $address is identified in Geo2.
          But since Geo1 (which is predominantly HTML) calls Geo2 by doing an echo in Geo1, I need to get $address after I do the echo in Geo1.

          Comment


          • #6
            Sorry, don't get the point.

            PSEUDOCODE
            $youraddress = file_get_contents(geo2)
            /Giuseppe

            Professional Scriptcase Services
            Some Customers opinions

            Comment


            • #7
              Giu

              I have attached both app. If you modify getIPaddress2 at the bottom and un-comment the "echo $address", you will see it gives you your answer. But when you try and see the $address in getIPaddress1, after the echo statement at the end of the page, it's empty. Thus how do I get $address at the end of getIPaddress1.
              Attached Files

              Comment

              Working...
              X