Michael Check wrote:

1) I'll assume that you can provide extra PHP code that will run on the ISP
server. This will allow you to extend Mambo. 2) PHP's include() command can
include remote content. You can use this to include remote Active4D files from
you 4D server. In most cases your A4D files won't serve full web pages, but
just parts of a page. Therefore if you output content that uses the Mambo
stylesheets the end user will have no idea that the page is built on content
from 2 servers.

Excellent, yes, thank you Brad.  That is exactly what we'll use.  We could
also, through php, open a remote socket (the A4D server) and send the info
there for response.  But...

How can we handle posting variables?  So for instance, we include a form
built on A4D that gets included back in Mambo's stylsheets and framework.
The submit button would have to encapsulate the post variables from the form
on the php server then forward the whole thing over to the A4D server.
Right?  This is the part I find confusing.  How to discern what part gets
sent to which server.  With php, we can build an entire request header, I
think, then send the request/post with the variables to the A4D server.  I
think.

Any chance you have done this sucessfully?

Michael,

I hadn't thought about the sockets approach. The PHP CURL library might help too (if available).

My experience is mainly in the area of providing included read-only content, but as a simple example I would think that something like this would be possible. Granted, it will take some careful design to come up with something that isn't cumbersome.

<?php

// This is pseudocode for a PHP page that could have multiple forms that post to different servers.

   // A form that posts back to this php server
   <form action="/processform.php" method="post" etc.>
      ...
   </form>

   // A form that posts to our customer's remote A4D server
// We included this content remotely. The form will post back to that server.
   // The response will have to check that server for success.
<form action="http://myremoteA4Dsite.com/processA4Dform.a4d"; method="post" etc.>
      ...
   </form>

?>

hth,

Brad
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to