RE: a code question..??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



here's the basic logic flow that i'm contemplating...

   app A (server A)                                app B (server B)
   -app displays page
   -app gets code from app B         --->>>        code/form section
   -app displays rest of
    page with code/form from
    app B

   -user enters name
   -app sends name to app B        --->>>          app B returns new
code/form
   -app displays new page, with
    new code/form from app B
   -user enters new information
    in code/form

as you can see, there are interactions that occur betwwen app A and app B.
but i'm not sure if what i'm thinking of can be accomplished...

the information in the code/forms from app B will change based on the
username...

thoughts/comments..

-bruce


-----Original Message-----
From: Ben [mailto:ben@xxxxxxxxxxxxxxxxx]
Sent: Thursday, November 10, 2005 1:24 PM
To: php-general@xxxxxxxxxxxxx
Subject: Re:  a code question..??


bruce said the following on 11/10/2005 01:15 PM:
> the primary issue i'm trying to address is whether it's possible for a php
> app to somehow display on one app, code/forms that essentially resides on
> another server? doens't have to be a login form..
>
> in all honesty, i don't see how it can be possible..
>
> using curl, would simply download the code from app B to app A which isn't
> what i want. i'm looking to keep the code on app B from being
> modified/played with, which is why i'm inclined to think the code/form in
> question needs to be able to be run from app B...

I quick stroll through the archives ought to answer your question.  You
have many options.  It could be as simple as:

if($login) {
	print("<iframe src=\"http://url.for.app.b\";></iframe>\n");
   }

It depends what you want to do and how aware you want your two
applications to be of each other, which you haven't really explained.

- Ben

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux