"Dan" <to******@yahoo .com> schrieb im Newsbeitrag
news:f0******** *************** ***@posting.goo gle.com...
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?
Thanks,
Dan
hi
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" ...
...
</form>
to see which values are transmitted simply place the following code
into your script and submit it
e.g
<?php
function b_showTransferV abs($_pt = true, $_gt = true){
if($_pt) global $HTTP_POST_VARS ;
if($_gt) global $HTTP_GET_VARS;
$_font_color_po st = '<font style="color:#f f0099;">';
$_font_color_ge t = '<font style="color:#0 099cc;">';
$font_ = '</font>';
$_font_size = '<font style="font-size: 11px;">';
echo $_font_size;
if($_pt){
echo '<br>'.$_font_c olor_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>...';
}
if($_gt){
echo '<br>'.$_font_c olor_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_;
}
b_showTransferV abs();
hope this helps markus