Capturing results of a Form Submission

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
A Newbie needs help!

Is it possible, in PHP, to capture the resulting HTML of a submitted
form returning from a server and incorporate that HTML into say a
table, or some predefined layout?

I am trying to incorporate the resulting HTML  into a layout I have
created in order to keep the look & feel of my site consistent, but
the resulting page is a plain "cheesy" page.

Any ideas how I can get around this?    



Re: Capturing results of a Form Submission

Quoted text here. Click to load it


to transfer post variables your script must have a form tag such as

<form name="form_name" method="post" action="<?php echo $PHP_SELF; ?>">
 some input objects
 <input type="text" ...

to see which values are transmitted simply place the following code
into your script and submit it



 function b_showTransferVabs($_pt = true, $_gt = true){
  if($_pt)    global $HTTP_POST_VARS;
  if($_gt)    global $HTTP_GET_VARS;
  $_font_color_post = '<font style="color:#ff0099;">';
  $_font_color_get  = '<font style="color:#0099cc;">';
  $font_    = '</font>';
  $_font_size   = '<font style="font-size: 11px;">';
  echo $_font_size;
   echo '<br>'.$_font_color_post.'the incoming POST-vabs:'.$font_;
   while(list($key, $val) = each($HTTP_POST_VARS)){

    $_pt = false;
    echo '<br> name=" '.$_font_color_post.$key.$font_.' " value="
'.$_font_color_post.$val.$font_.' "';
   if($_pt) echo '<br>...<i></i>not even one</i>...';

   echo '<br>'.$_font_color_get.'the incoming GET-vabs:'.$font_;
   while(list($key, $val) = each($HTTP_GET_VARS)){

    $_gt = false;
    echo '<br> name=" '.$_font_color_get.$key.$font_.' " value="
'.$_font_color_get.$val.$font_.' "';
   if($_gt) echo '<br>...not even one...';
  echo $font_;

hope this helps markus

Re: Capturing results of a Form Submission

Quoted text here. Click to load it

Markus, thanks very much for taking the time to reply.  I guess I'm
not asking the question correctly.  I'm not trying to reformat or
create the form, I'm simply trying to format the resulting html into
an existing html page.

For example:  I have an HTML page with an automotive part picture and
an order button.  When the order button is clicked, a new HTML page is
created which basically shows an invoice, or shopping cart if you
will.   The invoice page/shopping cart is a plain html page with a
simple table showing the quantity, part number, description, etc.   I
would like to somehow incorporate that basic invoice page into my html
layout--with my menu, title graphic, etc.

Is this possible with PHP?

Site Timeline