"Dan" <to******@yahoo.com> schrieb im Newsbeitrag
news:f0**************************@posting.google.c om...
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_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;
if($_pt){
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>...';
}
if($_gt){
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_;
}
b_showTransferVabs();
hope this helps markus